summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2017-05-01 00:25:55 +0200
committerGitHub <noreply@github.com>2017-05-01 00:25:55 +0200
commit65220cb2e71f1976284427137f6c69563c0c4e99 (patch)
treeb7d47ddf77efaa8e95aef1ff0e71b925817f1b91
parent2b140a795c562b8e6d71a2e555302bdc6ee3e17a (diff)
parentd9cf0256d4baffb578962f58c7c74445a3f58c09 (diff)
downloadnixlib-65220cb2e71f1976284427137f6c69563c0c4e99.tar
nixlib-65220cb2e71f1976284427137f6c69563c0c4e99.tar.gz
nixlib-65220cb2e71f1976284427137f6c69563c0c4e99.tar.bz2
nixlib-65220cb2e71f1976284427137f6c69563c0c4e99.tar.lz
nixlib-65220cb2e71f1976284427137f6c69563c0c4e99.tar.xz
nixlib-65220cb2e71f1976284427137f6c69563c0c4e99.tar.zst
nixlib-65220cb2e71f1976284427137f6c69563c0c4e99.zip
Merge pull request #24223 from c0bw3b/pkg/byacc
byacc: 1.9 -> 20170201
-rw-r--r--pkgs/development/tools/parsing/byacc/default.nix22
1 files changed, 14 insertions, 8 deletions
diff --git a/pkgs/development/tools/parsing/byacc/default.nix b/pkgs/development/tools/parsing/byacc/default.nix
index fdfac484bf10..c34eb9fc7084 100644
--- a/pkgs/development/tools/parsing/byacc/default.nix
+++ b/pkgs/development/tools/parsing/byacc/default.nix
@@ -1,17 +1,23 @@
 { stdenv, fetchurl }:
 
-stdenv.mkDerivation {
-  name = "byacc-1.9";
+stdenv.mkDerivation rec {
+  name = "byacc-${version}";
+  version = "20170201";
 
   src = fetchurl {
-    url = ftp://invisible-island.net/byacc/byacc-20140715.tgz;
-    sha256 = "1rbzx5ipkvih9rjfdfv6310wcr6mxjbdlsh9zcv5aaz6yxxxil7c";
+    urls = [
+      "ftp://invisible-island.net/byacc/${name}.tgz"
+      "http://invisible-mirror.net/archives/byacc/${name}.tgz"
+    ];
+    sha256 = "90b768d177f91204e6e7cef226ae1dc7cac831b625774cebd3e233a917754f91";
   };
 
-  meta = {
+  doCheck = true;
+
+  meta = with stdenv.lib; {
     description = "Berkeley YACC";
-    homepage = http://dickey.his.com/byacc/byacc.html;
-    license = stdenv.lib.licenses.publicDomain;
-    platforms = stdenv.lib.platforms.unix;
+    homepage = http://invisible-island.net/byacc/byacc.html;
+    license = licenses.publicDomain;
+    platforms = platforms.unix;
   };
 }