nur-packages

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

default.nix (686B)


      1 { lib, stdenv, fetchFromGitHub, libgrapheme }:
      2 
      3 stdenv.mkDerivation rec {
      4   pname = "makel";
      5   version = "2022-01-24";
      6 
      7   src = fetchFromGitHub {
      8     owner = "maandree";
      9     repo = pname;
     10     rev = "0650e17761ffc45b4fc5d32287514796d6da332d";
     11     hash = "sha256-ItZaByPpheCuSXdd9ej+ySeX3P6DYgnNNAQlAQeNEDA=";
     12   };
     13 
     14   buildInputs = [ libgrapheme ];
     15 
     16   makeFlags = [ "CC:=$(CC)" ];
     17 
     18   installFlags = [ "PREFIX=$(out)" ];
     19 
     20   installPhase = ''
     21     install -Dm755 makel $out/bin/makel
     22   '';
     23 
     24   meta = with lib; {
     25     description = "Makefile linter";
     26     inherit (src.meta) homepage;
     27     license = licenses.isc;
     28     maintainers = [ maintainers.sikmir ];
     29     platforms = platforms.unix;
     30   };
     31 }