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 ]; + }; +}