mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
31 lines
575 B
Nix
31 lines
575 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "oink";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rlado";
|
|
repo = "oink";
|
|
rev = "v${version}";
|
|
hash = "sha256-ojvuA5IlayPMNajl2+a4lx8NU06Da0vp9TJHCQVMtlo=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|