summary refs log tree commit diff
path: root/pkgs/development/tools/literate-programming
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-08-27 07:25:05 +0100
committerJörg Thalheim <joerg@thalheim.io>2017-08-27 07:28:30 +0100
commit916f1a0b8dcf94e2836c33ddd256532a7248b56e (patch)
tree8fcdc543249d867b66ad2a1cdd5b35993db9dbaf /pkgs/development/tools/literate-programming
parent02d52d8f931c7548d5f4c012b4ee9781d79424d3 (diff)
Literate: adapt to nixpkgs standards
Diffstat (limited to 'pkgs/development/tools/literate-programming')
-rw-r--r--pkgs/development/tools/literate-programming/Literate/default.nix21
1 files changed, 13 insertions, 8 deletions
diff --git a/pkgs/development/tools/literate-programming/Literate/default.nix b/pkgs/development/tools/literate-programming/Literate/default.nix
index 28ef14a80cc3b..4bc3e77dbaa71 100644
--- a/pkgs/development/tools/literate-programming/Literate/default.nix
+++ b/pkgs/development/tools/literate-programming/Literate/default.nix
@@ -1,17 +1,22 @@
 { stdenv, fetchgit, dmd, dub }:
 
 stdenv.mkDerivation {
-  name = "Literate";
+  name = "Literate-2017-05-28";
+
   src = fetchgit {
     url = "https://github.com/zyedidia/Literate.git";
     rev = "23928d64bb19b5101dbcc794da6119beaf59f679";
     sha256 = "094lramvacarzj8443ns18zyv7dxnivwi7kdk5xi5r2z4gx338iq";
   };
-  buildInputs = [dmd dub];
-  preInstall = ''
-  # Gross, but the Makefile doesn't provide an install target
-  mkdir $out
-  cp -R bin $out/bin
-  '';
-  phases = "unpackPhase patchPhase buildPhase checkPhase preInstall fixupPhase";
+
+  buildInputs = [ dmd dub ];
+
+  installPhase = "install -D bin/lit $out/bin/lit";
+
+  meta = with stdenv.lib; {
+    description = "A literate programming tool for any language";
+    homepage    = http://literate.zbyedidia.webfactional.com/;
+    license = licenses.mit;
+    platforms = platforms.unix;
+  };
 }