commit
c6b72bfceb
|
@ -1,19 +1,30 @@
|
||||||
{ stdenv, fetchurl, python }:
|
{ stdenv, fetchFromGitHub, python3Packages, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.9";
|
|
||||||
name = "grc-${version}";
|
name = "grc-${version}";
|
||||||
|
version = "1.10.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "http://korpus.juls.savba.sk/~garabik/software/grc/grc_${version}.orig.tar.gz";
|
owner = "garabik";
|
||||||
sha256 = "0nsgqpijhpinnzscmpnhcjahv8yivz0g65h8zsly2md23ibnwqj1";
|
repo = "grc";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1c2ndnbyznb608h3s99fbcyh4qb1ccipxm15lyszrrks0w2llbah";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = with python3Packages; [ wrapPython makeWrapper ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
sed -i s%/usr%% install.sh
|
./install.sh "$out" "$out"
|
||||||
sed -i "s% /usr/bin/python%${python}/bin/python%" grc
|
|
||||||
sed -i "s% /usr/bin/python%${python}/bin/python%" grc
|
for f in $out/bin/* ; do
|
||||||
./install.sh "$out"
|
patchPythonScript $f
|
||||||
|
substituteInPlace $f \
|
||||||
|
--replace ' /usr/bin/env python3' '${python3Packages.python.interpreter}' \
|
||||||
|
--replace "'/etc/grc.conf'" "'$out/etc/grc.conf'" \
|
||||||
|
--replace "'/usr/share/grc/'" "'$out/share/grc/'"
|
||||||
|
wrapProgram $f \
|
||||||
|
--prefix PATH : $out/bin
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in New Issue