Merge pull request #244234 from majiru/pc-init

pc: init at 0.4
This commit is contained in:
Sandro 2023-07-24 01:15:20 +02:00 committed by GitHub
commit 9e210b6f58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ lib
, stdenv
, byacc
, fetchFromSourcehut
, gitUpdater
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pc";
version = "0.4";
src = fetchFromSourcehut {
owner = "~ft";
repo = "pc";
rev = finalAttrs.version;
hash = "sha256-fzEDI20o5ROY9n/QRzCW66iCKYaBbI++Taur6EoA0wA=";
};
nativeBuildInputs = [ byacc ];
makeFlags = [ "PREFIX=$(out)" ];
strictDeps = true;
enableParallelBuilding = true;
passthru.updateScript = gitUpdater { };
meta = {
description = "Programmer's calculator";
homepage = "https://git.sr.ht/~ft/pc";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ moody ];
platforms = lib.platforms.unix;
};
})

View File

@ -5959,6 +5959,8 @@ with pkgs;
pbzx = callPackage ../tools/compression/pbzx { };
pc = callPackage ../tools/misc/pc { };
pcb2gcode = callPackage ../tools/misc/pcb2gcode { };
pcp = callPackage ../tools/misc/pcp { };