nur-packages

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

default.nix (865B)


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