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.
This commit is contained in:
Daniël de Kok 2020-07-03 14:06:21 +02:00
parent 5e66afd671
commit f3e9518149

View File

@ -9,21 +9,15 @@ stdenv.mkDerivation rec {
sha256 = "1gbkpbjwjaaifxff8amm9b47dynq4l4698snjdgnn4flndw62q88"; sha256 = "1gbkpbjwjaaifxff8amm9b47dynq4l4698snjdgnn4flndw62q88";
}; };
phases = [ "unpackPhase" "buildPhase" "installPhase" ]; # The prefix passed to configure is not used.
makeFlags = [ "DESTDIR=$(out)" ];
makeFlags = [ "CC=${stdenv.cc.outPath}/bin/cc" ]; meta = with stdenv.lib; {
installPhase = ''
mkdir -p $out/bin
cp -fv dpic $out/bin
'';
meta = {
homepage = "https://ece.uwaterloo.ca/~aplevich/dpic/";
description = "An implementation of the pic little language for creating drawings"; description = "An implementation of the pic little language for creating drawings";
license = stdenv.lib.licenses.bsd2; homepage = "https://ece.uwaterloo.ca/~aplevich/dpic/";
maintainers = [ stdenv.lib.maintainers.aespinosa ]; license = licenses.bsd2;
platforms = stdenv.lib.platforms.all; maintainers = with maintainers; [ aespinosa ];
platforms = platforms.all;
}; };
} }