nur-packages

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

commit b7b83a18ca526bcf505a1a4f3736648c6cb63559
parent 1e5ffb4d8e9919d8e31727d1c24f6b61dd1c7c44
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sat, 13 May 2023 20:45:19 +0400

Add cadzinho

Diffstat:
Mpkgs/default.nix | 3+++
Apkgs/misc/cadzinho/default.nix | 31+++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -324,6 +324,9 @@ lib.makeScope newScope ( bwh = callPackage ./misc/bwh { inherit (darwin.apple_sdk.frameworks) AppKit; }; + cadzinho = callPackage ./misc/cadzinho { + lua = pkgs.lua5_4; + }; capture2text = libsForQt5.callPackage ./misc/capture2text { }; cfiles = callPackage ./misc/cfiles { }; cpr = callPackage ./misc/cpr { }; diff --git a/pkgs/misc/cadzinho/default.nix b/pkgs/misc/cadzinho/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitHub, SDL2, glew, lua }: + +stdenv.mkDerivation rec { + pname = "cadzinho"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "zecruel"; + repo = "CadZinho"; + rev = version; + hash = "sha256-38FZsCyyUuQZS7fqZBzWWvNAkGTg36uEehtnm/RJH64="; + }; + + buildInputs = [ SDL2 glew lua ]; + + makeFlags = [ "CC:=$(CC)" ]; + + NIX_CFLAGS_COMPILE = "-Wno-format-security"; + + installPhase = '' + install -Dm755 cadzinho -t $out/bin + ''; + + meta = with lib; { + description = "Minimalist computer aided design (CAD) software"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}