package.nix (765B)
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 __structuredAttrs = true; 13 14 src = fetchFromGitHub { 15 owner = "maandree"; 16 repo = "makel"; 17 rev = "0650e17761ffc45b4fc5d32287514796d6da332d"; 18 hash = "sha256-ItZaByPpheCuSXdd9ej+ySeX3P6DYgnNNAQlAQeNEDA="; 19 }; 20 21 buildInputs = [ libgrapheme ]; 22 23 makeFlags = [ "CC:=$(CC)" ]; 24 25 installFlags = [ "PREFIX=$(out)" ]; 26 27 installPhase = '' 28 install -Dm755 makel -t $out/bin 29 ''; 30 31 meta = { 32 description = "Makefile linter"; 33 homepage = "https://github.com/maandree/makel"; 34 license = lib.licenses.isc; 35 maintainers = [ lib.maintainers.sikmir ]; 36 platforms = lib.platforms.unix; 37 }; 38 })
