mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
29 lines
710 B
Nix
29 lines
710 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "udpt";
|
|
version = "3.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "naim94a";
|
|
repo = "udpt";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "sha256-G3LzbV3b1Y/2SPIBS1kZDuLuGF5gV/H1LFBRhevpdjU=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-ebLVyUB65fW8BWctxXnYxrnl/2IESd4YJXeiMsMXn9s=";
|
|
|
|
postInstall = ''
|
|
install -D udpt.toml $out/share/udpt/udpt.toml
|
|
'';
|
|
|
|
meta = {
|
|
description = "Lightweight UDP torrent tracker";
|
|
homepage = "https://naim94a.github.io/udpt";
|
|
license = lib.licenses.gpl3;
|
|
platforms = lib.platforms.all;
|
|
maintainers = with lib.maintainers; [ makefu ];
|
|
mainProgram = "udpt-rs";
|
|
};
|
|
}
|