nur-packages

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

default.nix (736B)


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