nixpkgs/pkgs/applications/networking/dyndns/cfdyndns/default.nix

33 lines
833 B
Nix
Raw Normal View History

2020-03-10 21:43:05 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl }:
2016-01-17 12:11:09 +00:00
with rustPlatform;
buildRustPackage rec {
2019-08-31 12:41:23 +01:00
pname = "cfdyndns";
2020-03-10 21:43:05 +00:00
version = "0.0.3";
2016-01-17 12:11:09 +00:00
src = fetchFromGitHub {
owner = "colemickens";
repo = "cfdyndns";
rev = "v${version}";
2020-03-10 21:43:05 +00:00
sha256 = "1fba0w2979dmc2wyggqx4fj52rrl1s2vpjk6mkj1811a848l1hdi";
2016-01-17 12:11:09 +00:00
};
2020-03-10 21:43:05 +00:00
cargoSha256 = "04ryin24z3pfxjxy4smngy66xs7k85g6gdzsl77cij8ifb29im99";
2020-03-10 21:43:05 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
2016-01-17 12:11:09 +00:00
installPhase = ''
mkdir -p $out/bin
cp -p $releaseDir/cfdyndns $out/bin/
2016-01-17 12:11:09 +00:00
'';
meta = with stdenv.lib; {
description = "CloudFlare Dynamic DNS Client";
homepage = "https://github.com/colemickens/cfdyndns";
2016-01-17 12:11:09 +00:00
license = stdenv.lib.licenses.mit;
maintainers = with maintainers; [ colemickens ];
platforms = with platforms; linux;
2016-01-17 12:11:09 +00:00
};
}