nur-packages

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

commit 475e0be0e372c4da93e33db5f6cb247da49d074c
parent 896368dca9c4c99f26ab2705e4ebbae0e29f2e69
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sat,  8 Jan 2022 17:57:37 +0300

Add makel

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/suckless/makel/default.nix | 31+++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -375,6 +375,7 @@ lib.makeScope newScope ( libgrapheme = callPackage ./suckless/libgrapheme { }; libst = callPackage ./suckless/libst { }; mage = callPackage ./suckless/mage { }; + makel = callPackage ./suckless/makel { }; nsxiv = callPackage ./suckless/nsxiv { }; pista = callPackage ./suckless/pista { }; saait = callPackage ./suckless/saait { }; diff --git a/pkgs/suckless/makel/default.nix b/pkgs/suckless/makel/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitHub, libgrapheme }: + +stdenv.mkDerivation rec { + pname = "makel"; + version = "2022-01-07"; + + src = fetchFromGitHub { + owner = "maandree"; + repo = pname; + rev = "7e54065eb147ba61b5c4b0ca81bd3980a91bf22d"; + hash = "sha256-U+0ou4FZvqs+/gL8mMrrdmioP/up9V8+P5DH9xgzV9M="; + }; + + buildInputs = [ libgrapheme ]; + + makeFlags = [ "CC:=$(CC)" ]; + + installFlags = [ "PREFIX=$(out)" ]; + + installPhase = '' + install -Dm755 makel $out/bin/makel + ''; + + meta = with lib; { + description = "Makefile linter"; + inherit (src.meta) homepage; + license = licenses.isc; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}