depot/third_party/nixpkgs/pkgs/tools/graphics/dpic/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
758 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "dpic";
version = "2020.03.01";
src = fetchurl {
url = "https://ece.uwaterloo.ca/~aplevich/dpic/${pname}-${version}.tar.gz";
sha256 = "1wa1b8m98wdyryf0czn5g3g50znrjcdhsrzpqp6zgwr5w4a086mj";
};
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
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/";
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;
};
}