2016-02-22 03:56:51 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "dpic";
|
2020-07-03 07:39:20 +02:00
|
|
|
version = "2020.06.01";
|
2016-02-22 03:56:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
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" ];
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|