nixpkgs-suyu/pkgs/tools/graphics/dpic/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

29 lines
752 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "dpic";
version = "2016.01.12";
src = fetchurl {
url = "https://ece.uwaterloo.ca/~aplevich/dpic/${pname}-${version}.tar.gz";
sha256 = "0iwwf8shgm8n4drz8mndvk7jga93yy8plnyby3lgk8376g5ps6cz";
};
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;
};
}