nur-packages

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

default.nix (644B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   openssl,
      6 }:
      7 
      8 stdenv.mkDerivation {
      9   pname = "btpd";
     10   version = "2020-04-07";
     11 
     12   src = fetchFromGitHub {
     13     owner = "btpd";
     14     repo = "btpd";
     15     rev = "a3a10dfe1ece4a726530353a7b208c0cb4ff7e0d";
     16     hash = "sha256-9LvhJhdlGC0awtF3SFlv2oHMCH0BrG49Op2EeaPJsDE=";
     17   };
     18 
     19   buildInputs = [ openssl ];
     20 
     21   makeFlags = [ "CC:=$(CC)" ];
     22 
     23   installFlags = [ "PREFIX=$(out)" ];
     24 
     25   meta = {
     26     description = "The BitTorrent Protocol Daemon";
     27     homepage = "https://github.com/btpd/btpd";
     28     license = lib.licenses.bsd2;
     29     maintainers = [ lib.maintainers.sikmir ];
     30     platforms = lib.platforms.unix;
     31   };
     32 }