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

33 lines
833 B
Nix
Raw Normal View History

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