diff options
author | Jacob Moody <moody@posixcafe.org> | 2023-07-18 17:44:27 -0500 |
---|---|---|
committer | Jacob Moody <moody@posixcafe.org> | 2023-07-23 15:57:32 -0500 |
commit | 62c8209b53895daebea584241fd04803a7958b24 (patch) | |
tree | e6730963aac89fa0f4f8461054ea9feddbcfe44c /pkgs/tools/misc/pc | |
parent | 37c6252cd15078509d0c28254d417a3e7ffd9c07 (diff) | |
download | nixlib-62c8209b53895daebea584241fd04803a7958b24.tar nixlib-62c8209b53895daebea584241fd04803a7958b24.tar.gz nixlib-62c8209b53895daebea584241fd04803a7958b24.tar.bz2 nixlib-62c8209b53895daebea584241fd04803a7958b24.tar.lz nixlib-62c8209b53895daebea584241fd04803a7958b24.tar.xz nixlib-62c8209b53895daebea584241fd04803a7958b24.tar.zst nixlib-62c8209b53895daebea584241fd04803a7958b24.zip |
pc: init at 0.4
Diffstat (limited to 'pkgs/tools/misc/pc')
-rw-r--r-- | pkgs/tools/misc/pc/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/misc/pc/default.nix b/pkgs/tools/misc/pc/default.nix new file mode 100644 index 000000000000..ecf0122f0869 --- /dev/null +++ b/pkgs/tools/misc/pc/default.nix @@ -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; + }; +}) |