about summary refs log tree commit diff
path: root/pkgs/applications/editors/deadpixi-sam
diff options
context:
space:
mode:
authorRam Kromberg <ramkromberg@mail.com>2016-09-05 01:08:37 +0300
committerRam Kromberg <ramkromberg@mail.com>2016-09-17 16:43:28 +0300
commitdd8335629da954e5871a1f8f56b8e70cf50a5749 (patch)
tree0795fea2caeedc2bd0ff648539a346444c0feae7 /pkgs/applications/editors/deadpixi-sam
parentb4e2b6bc6aac50094dad02a01d34d0aaca7eb3f4 (diff)
deadpixi-sam: init at 2016-09-15
Diffstat (limited to 'pkgs/applications/editors/deadpixi-sam')
-rw-r--r--pkgs/applications/editors/deadpixi-sam/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/editors/deadpixi-sam/default.nix b/pkgs/applications/editors/deadpixi-sam/default.nix
new file mode 100644
index 0000000000000..03b920ffab0da
--- /dev/null
+++ b/pkgs/applications/editors/deadpixi-sam/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchFromGitHub, freetype, libX11, libXt, libXft
+}:
+
+stdenv.mkDerivation rec {
+  name = "deadpixi-sam-unstable";
+  version = "2016-09-15";
+    src = fetchFromGitHub {
+      owner = "deadpixi";
+      repo = "sam";
+      rev = "a6a8872246e8634d884b0ce52bc3be9770ab1b0f";
+      sha256 = "1zr8dl0vp1xic3dq69h4bp2fcxsjhrzasfl6ayvkibjd6z5dn07p";
+    };
+
+  postPatch = ''
+    substituteInPlace config.mk.def \
+      --replace "/usr/include/freetype2" "${freetype.dev}/include/freetype2"
+  '';
+
+  makeFlags = [ "DESTDIR=$(out)" ];
+  buildInputs = [ libX11 libXt libXft ];
+
+  postInstall = ''
+    mkdir -p $out/share/applications
+    mv deadpixi-sam.desktop $out/share/applications
+  '';
+
+  meta = with stdenv.lib; {
+    inherit (src.meta) homepage;
+    description = "Updated version of the sam text editor";
+    license = with licenses; lpl-102;
+    maintainers = with maintainers; [ ramkromberg ];
+    platforms = with platforms; linux;
+  };
+}