nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "udpt";
9 version = "3.1.2";
10
11 src = fetchFromGitHub {
12 owner = "naim94a";
13 repo = "udpt";
14 rev = "v${version}";
15 sha256 = "sha256-dWZRl5OiuEmCx7+Id0/feCohH5k/HA47nbPUEo8BBwQ=";
16 };
17
18 cargoHash = "sha256-AtqtANpxsmvdEoISyGZKDVR7/IxMBPwGGNelgf7ZlH4=";
19
20 postInstall = ''
21 install -D udpt.toml $out/share/udpt/udpt.toml
22 '';
23
24 meta = {
25 description = "Lightweight UDP torrent tracker";
26 homepage = "https://naim94a.github.io/udpt";
27 license = lib.licenses.gpl3;
28 platforms = lib.platforms.all;
29 maintainers = with lib.maintainers; [ makefu ];
30 mainProgram = "udpt-rs";
31 };
32}