commit cd3504fbcf63722f2e514026b66b7f4f918f13e2 parent f5dbbd0627e902b8479d27f55bc1daf1bf191b28 Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Wed, 20 Jan 2021 22:13:23 +0300 Add lacc Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/suckless/lacc/default.nix | | | 25 | +++++++++++++++++++++++++ |
2 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -250,6 +250,7 @@ lib.makeScope newScope ( farbfeld-utils = callPackage ./suckless/farbfeld-utils { }; hurl = callPackage ./suckless/hurl { }; imscript = callPackage ./suckless/imscript { }; + lacc = callPackage ./suckless/lacc { }; lel = callPackage ./suckless/lel { }; quark = callPackage ./suckless/quark { }; saait = callPackage ./suckless/saait { }; diff --git a/pkgs/suckless/lacc/default.nix b/pkgs/suckless/lacc/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation { + pname = "lacc"; + version = "20201-01-03"; + + src = fetchFromGitHub { + owner = "larmel"; + repo = "lacc"; + rev = "7c995af815a8e4b44f628021fe0b0a1e84d832c2"; + sha256 = "0mrzfw93n05pqdr0ww46h9nv73dbh4q8pm13qw7i8a2psfgk858d"; + }; + + installFlags = [ "PREFIX=$(out)" ]; + + preInstall = "mkdir -p $out/bin"; + + meta = with stdenv.lib; { + description = "A simple, self-hosting C compiler"; + homepage = "https://github.com/larmel/lacc"; + license = licenses.mit; + platforms = platforms.unix; + maintainers = [ maintainers.sikmir ]; + }; +}