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-02-14 03:00:26 +01:00
|
|
|
|
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
|
2020-03-20 07:45:29 +01:00
|
|
|
cp -p $releaseDir/cfdyndns $out/bin/
|
2016-01-17 13:11:09 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "CloudFlare Dynamic DNS Client";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/colemickens/cfdyndns";
|
2016-01-17 13:11:09 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = with maintainers; [ colemickens ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with platforms; linux;
|
2016-01-17 13:11:09 +01:00
|
|
|
};
|
|
|
|
}
|