nur-packages

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

default.nix (846B)


      1 { lib, stdenv, fetchFromGitHub, zig }:
      2 
      3 stdenv.mkDerivation rec {
      4   pname = "gurl";
      5   version = "2021-03-06";
      6 
      7   src = fetchFromGitHub {
      8     owner = "MasterQ32";
      9     repo = "gurl";
     10     rev = "c6491a0760c125ca50d86860f77b544f729d8885";
     11     hash = "sha256-l7WasR1rdD6DV3JWDIGcUlVkypnIKLNoKaVbibdibQc=";
     12     fetchSubmodules = true;
     13   };
     14 
     15   nativeBuildInputs = [ zig ];
     16 
     17   buildPhase = ''
     18     export HOME=$TMPDIR
     19     zig build -Drelease-safe=true -Dcpu=baseline
     20   '';
     21 
     22   installPhase = ''
     23     install -Dm755 zig-out/bin/gurl -t $out/bin
     24   '';
     25 
     26   meta = with lib; {
     27     description = "A curl-like cli application to interact with Gemini sites";
     28     inherit (src.meta) homepage;
     29     license = licenses.mit;
     30     maintainers = [ maintainers.sikmir ];
     31     platforms = platforms.unix;
     32     broken = true; # https://github.com/MasterQ32/gurl/issues/5
     33   };
     34 }