lol

imatix_gsl: fix build

See https://hydra.nixos.org/build/35004296/log/raw

Also fix some formatting issues.

+20 -23
+20 -23
pkgs/development/tools/imatix_gsl/default.nix
··· 1 1 { stdenv, fetchFromGitHub, pcre } : 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "imatix_gsl"; 5 - version = "4.1"; 6 - src = fetchFromGitHub { 7 - owner = "imatix"; 8 - repo = "gsl"; 9 - rev = "72192d0d9de17de08d9379602d6482b4e5d402d0"; 10 - sha256 = "1apy11avgqc27xlczyjh15y10qjdyqsqab1wrl2067qgpdiy58w7"; 11 - }; 4 + name = "imatix_gsl"; 5 + version = "4.1"; 12 6 13 - buildInputs = [ pcre ]; 7 + src = fetchFromGitHub { 8 + owner = "imatix"; 9 + repo = "gsl"; 10 + rev = "72192d0d9de17de08d9379602d6482b4e5d402d0"; 11 + sha256 = "1apy11avgqc27xlczyjh15y10qjdyqsqab1wrl2067qgpdiy58w7"; 12 + }; 14 13 15 - preBuild = '' 16 - cd src 17 - ''; 14 + buildInputs = [ pcre ]; 18 15 19 - installFlags = "DESTDIR=$(out)"; 16 + postPatch = "sed -e 's,/usr/bin/install,install,g' -i src/Makefile"; 17 + preBuild = "cd src"; 18 + installFlags = "DESTDIR=$(out)"; 20 19 21 - meta = with stdenv.lib; { 22 - license = licenses.gpl3Plus; 23 - homepage = "https://github.com/imatix/gsl"; 24 - description = '' 25 - A universal code generator 26 - ''; 27 - platforms = platforms.unix; 28 - maintainer = [ maintainers.moosingin3space ]; 29 - }; 30 - } 20 + meta = with stdenv.lib; { 21 + license = licenses.gpl3Plus; 22 + homepage = https://github.com/imatix/gsl/; 23 + description = "A universal code generator"; 24 + platforms = platforms.unix; 25 + maintainer = [ maintainers.moosingin3space ]; 26 + }; 27 + }