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

30 lines
758 B
Nix
Raw Normal View History

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