nur-packages

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

commit 5839d3ceb16e4d1738e558e7a8c9e363e9bd9bcd
parent 806277fb76551a2998f95e7d699c68616e580191
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Wed, 27 Oct 2021 13:51:36 +0300

Add cproc

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/suckless/cproc/default.nix | 25+++++++++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -339,6 +339,7 @@ lib.makeScope newScope ( ### SUCKLESS blind = callPackage ./suckless/blind { }; + cproc = callPackage ./suckless/cproc { }; farbfeld-utils = callPackage ./suckless/farbfeld-utils { }; hurl = callPackage ./suckless/hurl { }; imscript = callPackage ./suckless/imscript { }; diff --git a/pkgs/suckless/cproc/default.nix b/pkgs/suckless/cproc/default.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchFromSourcehut, qbe }: + +stdenv.mkDerivation rec { + pname = "cproc"; + version = "2021-10-25"; + + src = fetchFromSourcehut { + owner = "~mcf"; + repo = pname; + rev = "e345d6fc4e3223e2d2655114c8829538276a0bb9"; + hash = "sha256-98xsikrGcaKdrIUcwgkHw8YJqbO1no6MvUOtlXQ3w54="; + }; + + buildInputs = [ qbe ]; + + doCheck = true; + + meta = with lib; { + description = "C11 compiler using QBE as a backend"; + inherit (src.meta) homepage; + license = licenses.isc; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}