nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit b45170d5352b6a68240be3f84396b4596312a103
parent a3dd7e60620e89a1a96e60bdc3ab579efde921f7
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Wed,  1 Dec 2021 10:05:33 +0300

Add btpd

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/btpd/default.nix | 27+++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -263,6 +263,7 @@ lib.makeScope newScope ( amethyst-bin = callPackage ./misc/amethyst/bin.nix { }; apibackuper = callPackage ./misc/apibackuper { }; ascii-dash = callPackage ./misc/ascii-dash { }; + btpd = callPackage ./misc/btpd { }; cfiles = callPackage ./misc/cfiles { }; csvquote = callPackage ./misc/csvquote { }; csvtools = callPackage ./misc/csvtools { }; diff --git a/pkgs/misc/btpd/default.nix b/pkgs/misc/btpd/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchFromGitHub, openssl }: + +stdenv.mkDerivation rec { + pname = "btpd"; + version = "2020-04-07"; + + src = fetchFromGitHub { + owner = "btpd"; + repo = pname; + rev = "a3a10dfe1ece4a726530353a7b208c0cb4ff7e0d"; + hash = "sha256-9LvhJhdlGC0awtF3SFlv2oHMCH0BrG49Op2EeaPJsDE="; + }; + + buildInputs = [ openssl ]; + + makeFlags = [ "CC:=$(CC)" ]; + + installFlags = [ "PREFIX=$(out)" ]; + + meta = with lib; { + description = "The BitTorrent Protocol Daemon"; + inherit (src.meta) homepage; + license = licenses.bsd2; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}