nixpkgs/pkgs/by-name/oi/oink/package.nix
2024-05-23 09:35:22 +12:00

31 lines
575 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "oink";
version = "1.1.1";
src = fetchFromGitHub {
owner = "rlado";
repo = "oink";
rev = "v${version}";
hash = "sha256-nSLoochU0mRxD83EXH3xsrfBBg4SnvIyf5qUiwSeh0c=";
};
vendorHash = null;
postInstall = ''
mv $out/bin/src $out/bin/oink
'';
meta = {
description = "Dynamic DNS client for Porkbun";
homepage = "https://github.com/rlado/oink";
license = lib.licenses.mit;
mainProgram = "oink";
maintainers = with lib.maintainers; [ jtbx ];
};
}