nur-packages

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

default.nix (622B)


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