nur-packages

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

default.nix (768B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   openssl,
      6 }:
      7 
      8 stdenv.mkDerivation (finalAttrs: {
      9   pname = "gem";
     10   version = "0-unstable-2024-08-29";
     11 
     12   src = fetchFromGitHub {
     13     owner = "wrclark";
     14     repo = "gem";
     15     rev = "50c24989ce407bba55d4d7fd3b1cd6f165594463";
     16     hash = "sha256-AsLUAHnNSjKKzKL6Am/DfV4GTdIozdF6k+hmAdHr4jc=";
     17   };
     18 
     19   postPatch = ''
     20     substituteInPlace Makefile --replace "CFLAGS +=" "#CFLAGS +="
     21   '';
     22 
     23   buildInputs = [ openssl ];
     24 
     25   makeFlags = [ "CC:=$(CC)" ];
     26 
     27   installPhase = ''
     28     install -Dm755 gem -t $out/bin
     29   '';
     30 
     31   meta = {
     32     description = "gemini server";
     33     homepage = "https://github.com/wrclark/gem";
     34     license = lib.licenses.free;
     35     maintainers = [ lib.maintainers.sikmir ];
     36     platforms = lib.platforms.unix;
     37   };
     38 })