Merge pull request #1932 from wkennington/master.sup
sup: Push sup to the latest git commit
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
{ stdenv, fetchurl, ncurses, ruby, rubygems }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = ''ncursesw-sup-afd962b9c06108ff0643e98593c5605314d76917'';
|
||||
name = "ncursesw-sup-${version}";
|
||||
version = "1.4.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/sup-heliotrope/ncursesw-ruby/archive/afd962b9c06108ff0643e98593c5605314d76917.tar.gz";
|
||||
sha256 = "13i286p4bm8zqg9xh96a1dg7wkywj9m6975gbh3w43d3rmfc1h6a";
|
||||
url = "https://github.com/sup-heliotrope/ncursesw-ruby/archive/v${version}.tar.gz";
|
||||
sha256 = "1fzmj5kqh2aql7r7jys8cyf7mb78kz71yc4a6gh74h9s8pybyhh7";
|
||||
};
|
||||
|
||||
meta = {
|
||||
@@ -32,12 +33,12 @@ stdenv.mkDerivation rec {
|
||||
# For some reason, the installation phase doesn't work with the default
|
||||
# make install command run by gem (we'll fix it and do it ourselves later)
|
||||
gem install --no-verbose --install-dir "$out/${ruby.gemPath}" \
|
||||
--bindir "$out/bin" --no-rdoc --no-ri ncursesw-sup-1.3.1.2.gem || true
|
||||
--bindir "$out/bin" --no-rdoc --no-ri ncursesw-${version}.gem || true
|
||||
|
||||
# Needed for ruby to recognise the gem
|
||||
cp ncursesw.gemspec "$out/${ruby.gemPath}/specifications"
|
||||
|
||||
cd "$out/${ruby.gemPath}/gems/ncursesw-sup-1.3.1.2"
|
||||
cd "$out/${ruby.gemPath}/gems/ncursesw-${version}"
|
||||
mkdir src
|
||||
mv lib src
|
||||
sed -i "s/srcdir = ./srcdir = src/" Makefile
|
||||
|
||||
Reference in New Issue
Block a user