Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
30 lines
579 B
Nix
30 lines
579 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "oink";
|
|
version = "1.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rlado";
|
|
repo = "oink";
|
|
rev = "v${version}";
|
|
hash = "sha256-MBNEMIrpJdXzMjmNwmKXTIzPNNGalElhIxmMU4y6zXo=";
|
|
};
|
|
|
|
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 pmw ];
|
|
};
|
|
}
|