commit 8134c974204441785e66870c33bd6cc8783fa5cb
parent 6c9665bb0286f6e6b55ca7d7460ee0d89bc84404
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Thu, 8 Feb 2024 13:14:03 +0400
Move cadzinho to nixpkgs
Diffstat:
2 files changed, 0 insertions(+), 48 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -339,9 +339,6 @@ lib.makeScope newScope (
bwh = darwin.apple_sdk_11_0.callPackage ./misc/bwh {
inherit (darwin.apple_sdk_11_0.frameworks) AppKit;
};
- cadzinho = callPackage ./misc/cadzinho {
- lua = pkgs.lua5_4;
- };
capture2text = libsForQt5.callPackage ./misc/capture2text { };
cfiles = callPackage ./misc/cfiles { };
csv2html = callPackage ./misc/csv2html { };
diff --git a/pkgs/misc/cadzinho/default.nix b/pkgs/misc/cadzinho/default.nix
@@ -1,45 +0,0 @@
-{ lib, stdenv, fetchFromGitHub, SDL2, glew, lua, desktopToDarwinBundle }:
-
-stdenv.mkDerivation rec {
- pname = "cadzinho";
- version = "0.4.1";
-
- src = fetchFromGitHub {
- owner = "zecruel";
- repo = "CadZinho";
- rev = version;
- hash = "sha256-6/sBNxQb52FFO2fWLVs6YDOmJLEbSOA5mwdMdJDjEDM=";
- };
-
- postPatch = ''
- substituteInPlace src/gui_config.c --replace "/usr/share/cadzinho" "$out/share/cadzinho"
- '';
-
- nativeBuildInputs = lib.optional stdenv.isDarwin desktopToDarwinBundle;
-
- buildInputs = [ SDL2 glew lua ];
-
- makeFlags = [ "CC:=$(CC)" ];
-
- # https://github.com/llvm/llvm-project/issues/62254
- env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-fno-builtin-strrchr";
-
- hardeningDisable = [ "format" ];
-
- installPhase = ''
- runHook preInstall
- install -Dm755 cadzinho -t $out/bin
- install -Dm644 lang/*.lua -t $out/share/cadzinho/lang
- cp -r linux/CadZinho/share/* $out/share
- runHook postInstall
- '';
-
- meta = with lib; {
- description = "Minimalist computer aided design (CAD) software";
- inherit (src.meta) homepage;
- license = licenses.mit;
- maintainers = [ maintainers.sikmir ];
- platforms = platforms.unix;
- mainProgram = "cadzinho";
- };
-}