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