summary refs log tree commit diff
path: root/pkgs/tools/graphics
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-23 09:40:37 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-23 09:40:37 -0400
commit18742471aff29270453a540f84d543137ee9d44e (patch)
treed21863fd81db3722e8cac52b52be3dd1c429cf21 /pkgs/tools/graphics
parent2e831da76da0a51557975a55dc8a18ebf3401bfb (diff)
parentbbcaf78350d87c4657b1a2451132535467a454eb (diff)
downloadnixpkgs-18742471aff29270453a540f84d543137ee9d44e.tar
nixpkgs-18742471aff29270453a540f84d543137ee9d44e.tar.gz
nixpkgs-18742471aff29270453a540f84d543137ee9d44e.tar.bz2
nixpkgs-18742471aff29270453a540f84d543137ee9d44e.tar.lz
nixpkgs-18742471aff29270453a540f84d543137ee9d44e.tar.xz
nixpkgs-18742471aff29270453a540f84d543137ee9d44e.tar.zst
nixpkgs-18742471aff29270453a540f84d543137ee9d44e.zip
Merge remote-tracking branch 'upstream/master' into staging
Use newer vagrant from master
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r--pkgs/tools/graphics/s2png/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/s2png/default.nix b/pkgs/tools/graphics/s2png/default.nix
new file mode 100644
index 00000000000..fd538eec573
--- /dev/null
+++ b/pkgs/tools/graphics/s2png/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchFromGitHub, diffutils, gd, pkgconfig }:
+
+stdenv.mkDerivation rec {
+  name = "s2png-${version}";
+  version = "0.7.2";
+
+  src = fetchFromGitHub {
+    owner = "dbohdan";
+    repo = "s2png";
+    rev = "v${version}";
+    sha256 = "0y3crfm0jqprgxamlly713cka2x1bp6z63p1lw9wh4wc37kpira6";
+  };
+
+  buildInputs = [ diffutils gd pkgconfig ];
+  installFlags = [ "prefix=" "DESTDIR=$(out)" ];
+
+  meta = {
+    homepage = https://github.com/dbohdan/s2png/;
+    description = "Store any data in PNG images";
+    license = stdenv.lib.licenses.gpl2;
+    maintainers = [ stdenv.lib.maintainers.dbohdan ];
+    platforms = stdenv.lib.platforms.unix;
+  };
+}