summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/graphics/dpic
diff options
context:
space:
mode:
authorDaniël de Kok <me@danieldk.eu>2020-07-03 14:06:21 +0200
committerDaniël de Kok <me@danieldk.eu>2020-07-03 14:06:21 +0200
commitf3e951814972f05b0ab9c1ee0ee7cbfa7c12e8a4 (patch)
tree8d1f6b56670185f00ffc30355a080b66c12684fa /pkgs/tools/graphics/dpic
parent5e66afd6711f66a88185fa08fec6e1f20da74bbf (diff)
dpic: cleanup derivation, install man pages
- Use configure, since upstream provides it. - Rely on `make install` to install dpic. - This also installs the man pages.
Diffstat (limited to 'pkgs/tools/graphics/dpic')
-rw-r--r--pkgs/tools/graphics/dpic/default.nix20
1 files changed, 7 insertions, 13 deletions
diff --git a/pkgs/tools/graphics/dpic/default.nix b/pkgs/tools/graphics/dpic/default.nix
index 0bcac70e4b7f..7b7eea3d5095 100644
--- a/pkgs/tools/graphics/dpic/default.nix
+++ b/pkgs/tools/graphics/dpic/default.nix
@@ -9,21 +9,15 @@ stdenv.mkDerivation rec {
sha256 = "1gbkpbjwjaaifxff8amm9b47dynq4l4698snjdgnn4flndw62q88";
};
- phases = [ "unpackPhase" "buildPhase" "installPhase" ];
+ # The prefix passed to configure is not used.
+ makeFlags = [ "DESTDIR=$(out)" ];
- makeFlags = [ "CC=${stdenv.cc.outPath}/bin/cc" ];
-
- installPhase = ''
- mkdir -p $out/bin
- cp -fv dpic $out/bin
- '';
-
- meta = {
- homepage = "https://ece.uwaterloo.ca/~aplevich/dpic/";
+ meta = with stdenv.lib; {
description = "An implementation of the pic little language for creating drawings";
- license = stdenv.lib.licenses.bsd2;
- maintainers = [ stdenv.lib.maintainers.aespinosa ];
- platforms = stdenv.lib.platforms.all;
+ homepage = "https://ece.uwaterloo.ca/~aplevich/dpic/";
+ license = licenses.bsd2;
+ maintainers = with maintainers; [ aespinosa ];
+ platforms = platforms.all;
};
}