summary refs log tree commit diff
path: root/pkgs/development/libraries/ruby_ncursesw_sup
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-03-12 12:25:14 -0500
committerWilliam A. Kennington III <william@wkennington.com>2014-03-17 12:04:31 -0500
commit4a112f46b1d6edb9dafa5b4ed85fc70958201f89 (patch)
treee30f273064d69f1bb38a39e928a2a41c504cc80a /pkgs/development/libraries/ruby_ncursesw_sup
parent062363c001f1b0d33f7e4abd798db4b7ddfa967f (diff)
downloadnixpkgs-4a112f46b1d6edb9dafa5b4ed85fc70958201f89.tar
nixpkgs-4a112f46b1d6edb9dafa5b4ed85fc70958201f89.tar.gz
nixpkgs-4a112f46b1d6edb9dafa5b4ed85fc70958201f89.tar.bz2
nixpkgs-4a112f46b1d6edb9dafa5b4ed85fc70958201f89.tar.lz
nixpkgs-4a112f46b1d6edb9dafa5b4ed85fc70958201f89.tar.xz
nixpkgs-4a112f46b1d6edb9dafa5b4ed85fc70958201f89.tar.zst
nixpkgs-4a112f46b1d6edb9dafa5b4ed85fc70958201f89.zip
sup: Push sup to the latest git commit
ncursesw was also pushed forward from 1.3.1.2 -> 1.4.6 as the packaging
was changed for the latest version of sup
Diffstat (limited to 'pkgs/development/libraries/ruby_ncursesw_sup')
-rw-r--r--pkgs/development/libraries/ruby_ncursesw_sup/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/development/libraries/ruby_ncursesw_sup/default.nix b/pkgs/development/libraries/ruby_ncursesw_sup/default.nix
index 67041ad0607..8d55bafeb20 100644
--- a/pkgs/development/libraries/ruby_ncursesw_sup/default.nix
+++ b/pkgs/development/libraries/ruby_ncursesw_sup/default.nix
@@ -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