nur-packages

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

default.nix (747B)


      1 { lib, stdenv, fetchFromGitHub, bison, libressl, libevent }:
      2 
      3 stdenv.mkDerivation rec {
      4   pname = "gmid";
      5   version = "1.7.5";
      6 
      7   src = fetchFromGitHub {
      8     owner = "omar-polo";
      9     repo = pname;
     10     rev = version;
     11     hash = "sha256-BBd0AL5jRRslxzDnxcTZRR+8J5D23NAQ7mp9K+leXAQ=";
     12   };
     13 
     14   nativeBuildInputs = [ bison ];
     15 
     16   buildInputs = [ libressl libevent ];
     17 
     18   configurePhase = ''
     19     ./configure PREFIX=$out
     20   '';
     21 
     22   meta = with lib; {
     23     description = "Simple and secure Gemini server";
     24     homepage = "https://gmid.omarpolo.com/";
     25     license = licenses.isc;
     26     maintainers = [ maintainers.sikmir ];
     27     platforms = platforms.unix;
     28     broken = stdenv.isDarwin; # explicit_bzero() compatibility function symbol exported in libressl
     29   };
     30 }