Skip to content

Commit

Permalink
pikchr: init at unstable-2021-04-07 (#119006)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaz committed Apr 16, 2021
1 parent a8f6369 commit 087f1e1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/tools/graphics/pikchr/default.nix
@@ -0,0 +1,36 @@
{ lib
, stdenv
, fetchurl
}:

stdenv.mkDerivation {
pname = "pikchr";
version = "unstable-2021-04-07";

src = fetchurl {
url = "https://pikchr.org/home/tarball/90b6d5b4a3834ff0/pikchr.tar.gz";
sha256 = "1cqpnljy12gl82rcbb7mwhgv9szcliwkbwwh67hzdv020h1scxym";
};

# can't open generated html files
postPatch = ''
substituteInPlace Makefile --replace open "test -f"
'';

installPhase = ''
install -Dm755 pikchr $out/bin/pikchr
install -Dm755 pikchr.out $out/lib/pikchr.o
install -Dm644 pikchr.h $out/include/pikchr.h
'';

doCheck = true;
checkTarget = "test";

meta = with lib; {
description = "A PIC-like markup language for diagrams in technical documentation";
homepage = "https://pikchr.org";
license = licenses.bsd0;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.all;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -870,6 +870,8 @@ in

nimmm = callPackage ../applications/terminal-emulators/nimmm { };

pikchr = callPackage ../tools/graphics/pikchr { };

roxterm = callPackage ../applications/terminal-emulators/roxterm { };

rxvt = callPackage ../applications/terminal-emulators/rxvt { };
Expand Down

0 comments on commit 087f1e1

Please sign in to comment.