summary refs log tree commit diff
path: root/pkgs/development/tools/imatix_gsl
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-04-30 20:30:29 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-04-30 20:31:43 +0200
commitaaae243b2bbb6d1bf2d0b8f4de0df57f1055ded5 (patch)
tree5a62f18c6904c741cf1ede99334498941e9b7ec3 /pkgs/development/tools/imatix_gsl
parent0b6e9023393d3741123d35daccaa00c01554f97b (diff)
downloadnixpkgs-aaae243b2bbb6d1bf2d0b8f4de0df57f1055ded5.tar
nixpkgs-aaae243b2bbb6d1bf2d0b8f4de0df57f1055ded5.tar.gz
nixpkgs-aaae243b2bbb6d1bf2d0b8f4de0df57f1055ded5.tar.bz2
nixpkgs-aaae243b2bbb6d1bf2d0b8f4de0df57f1055ded5.tar.lz
nixpkgs-aaae243b2bbb6d1bf2d0b8f4de0df57f1055ded5.tar.xz
nixpkgs-aaae243b2bbb6d1bf2d0b8f4de0df57f1055ded5.tar.zst
nixpkgs-aaae243b2bbb6d1bf2d0b8f4de0df57f1055ded5.zip
imatix_gsl: fix build
See https://hydra.nixos.org/build/35004296/log/raw

Also fix some formatting issues.
Diffstat (limited to 'pkgs/development/tools/imatix_gsl')
-rw-r--r--pkgs/development/tools/imatix_gsl/default.nix43
1 files changed, 20 insertions, 23 deletions
diff --git a/pkgs/development/tools/imatix_gsl/default.nix b/pkgs/development/tools/imatix_gsl/default.nix
index 0def514dec5..629ddf69c4e 100644
--- a/pkgs/development/tools/imatix_gsl/default.nix
+++ b/pkgs/development/tools/imatix_gsl/default.nix
@@ -1,30 +1,27 @@
 { stdenv, fetchFromGitHub, pcre } :
 
 stdenv.mkDerivation rec {
-    name = "imatix_gsl";
-    version = "4.1";
-    src = fetchFromGitHub {
-    	owner = "imatix";
-	repo = "gsl";
-	rev = "72192d0d9de17de08d9379602d6482b4e5d402d0";
-	sha256 = "1apy11avgqc27xlczyjh15y10qjdyqsqab1wrl2067qgpdiy58w7";
-    };
+  name = "imatix_gsl";
+  version = "4.1";
 
-    buildInputs = [ pcre ];
+  src = fetchFromGitHub {
+    owner = "imatix";
+    repo = "gsl";
+    rev = "72192d0d9de17de08d9379602d6482b4e5d402d0";
+    sha256 = "1apy11avgqc27xlczyjh15y10qjdyqsqab1wrl2067qgpdiy58w7";
+  };
 
-    preBuild = ''
-    	cd src
-    '';
+  buildInputs = [ pcre ];
 
-    installFlags = "DESTDIR=$(out)";
+  postPatch = "sed -e 's,/usr/bin/install,install,g' -i src/Makefile";
+  preBuild = "cd src";
+  installFlags = "DESTDIR=$(out)";
 
-    meta = with stdenv.lib; {
-    	 license = licenses.gpl3Plus;
-	 homepage = "https://github.com/imatix/gsl";
-	 description = ''
-	     A universal code generator
-	 '';
-	 platforms = platforms.unix;
-	 maintainer = [ maintainers.moosingin3space ];
-    };
-}
\ No newline at end of file
+  meta = with stdenv.lib; {
+    license = licenses.gpl3Plus;
+    homepage = https://github.com/imatix/gsl/;
+    description = "A universal code generator";
+    platforms = platforms.unix;
+    maintainer = [ maintainers.moosingin3space ];
+  };
+}