nixpkgs-suyu/pkgs/servers/udpt/default.nix
makefu 282c558084
udpt: 2017-09-27 -> 3.1.1
udpt did a complete rewrite from cpp to rust.
This Commit uses rust with cargo to build the package.
The Configuration format changed form .conf to .toml and
the binary changed from udpt to udpt-rs
2020-07-23 17:29:58 +02:00

28 lines
737 B
Nix

{ stdenv, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "udpt";
version = "3.1.0";
src = fetchFromGitHub {
owner = "naim94a";
repo = "udpt";
rev = "${pname}-${version}";
sha256 = "1g6l0y5x9pdra3i1npkm474glysicm4hf2m01700ack2rp43vldr";
};
cargoSha256 = "1cmd80ndjxdmyfjpm1f04rwf64501nyi6wdsj7lxidgd1v92wy2c";
verifyCargoDeps = true;
postInstall = ''
install -D udpt.toml $out/share/udpt/udpt.toml
'';
meta = {
description = "A lightweight UDP torrent tracker";
homepage = "https://naim94a.github.io/udpt";
license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ makefu ];
};
}