diff --git a/lib/maintainers.nix b/lib/maintainers.nix index ad5693f42c31..226c41d48061 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -12,6 +12,7 @@ abaldeau = "Andreas Baldeau "; abbradar = "Nikolay Amiantov "; adev = "Adrien Devresse "; + aespinosa = "Allan Espinosa "; aforemny = "Alexander Foremny "; aflatter = "Alexander Flatter "; aherrmann = "Andreas Herrmann "; diff --git a/pkgs/tools/graphics/dpic/default.nix b/pkgs/tools/graphics/dpic/default.nix new file mode 100644 index 000000000000..ea73a0e95b9d --- /dev/null +++ b/pkgs/tools/graphics/dpic/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "dpic-${version}"; + version = "2016.01.12"; + + src = fetchurl { + url = "https://ece.uwaterloo.ca/~aplevich/dpic/${name}.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; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 85d85eff3707..424cb2670198 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -866,6 +866,8 @@ let dlx = callPackage ../misc/emulators/dlx { }; + dpic = callPackage ../tools/graphics/dpic { }; + dragon-drop = callPackage ../tools/X11/dragon-drop { gtk = gtk3; };