nixpkgs/pkgs/tools/graphics/dpic/default.nix

30 lines
758 B
Nix
Raw Normal View History

2016-02-22 03:56:51 +01:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "dpic";
2020-07-03 07:39:20 +02:00
version = "2020.06.01";
2016-02-22 03:56:51 +01:00
src = fetchurl {
url = "https://ece.uwaterloo.ca/~aplevich/dpic/${pname}-${version}.tar.gz";
2020-07-03 07:39:20 +02:00
sha256 = "1gbkpbjwjaaifxff8amm9b47dynq4l4698snjdgnn4flndw62q88";
2016-02-22 03:56:51 +01:00
};
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
makeFlags = [ "CC=${stdenv.cc.outPath}/bin/cc" ];
2016-02-22 03:56:51 +01:00
installPhase = ''
mkdir -p $out/bin
cp -fv dpic $out/bin
'';
meta = {
2020-03-06 09:21:15 +01:00
homepage = "https://ece.uwaterloo.ca/~aplevich/dpic/";
2016-02-22 03:56:51 +01:00
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;
};
}