about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2016-09-26 15:37:25 +0200
committerMichael Raskin <7c6f434c@mail.ru>2016-09-26 15:49:30 +0200
commit15e5c5214c64bf7617770a457805f02e02e7fc14 (patch)
tree8f9333f063abe7af9f862875b9d62ec09bb3abb9 /pkgs
parenteddd2274655ad797ea8a5df47efcd8825556977e (diff)
downloadnixlib-15e5c5214c64bf7617770a457805f02e02e7fc14.tar
nixlib-15e5c5214c64bf7617770a457805f02e02e7fc14.tar.gz
nixlib-15e5c5214c64bf7617770a457805f02e02e7fc14.tar.bz2
nixlib-15e5c5214c64bf7617770a457805f02e02e7fc14.tar.lz
nixlib-15e5c5214c64bf7617770a457805f02e02e7fc14.tar.xz
nixlib-15e5c5214c64bf7617770a457805f02e02e7fc14.tar.zst
nixlib-15e5c5214c64bf7617770a457805f02e02e7fc14.zip
jq: fix autoupdate metadata in case it gets updated in future
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/jq/default.nix5
-rw-r--r--pkgs/development/tools/jq/default.upstream1
2 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/tools/jq/default.nix b/pkgs/development/tools/jq/default.nix
index 2951cbe9aa93..d79aa0980003 100644
--- a/pkgs/development/tools/jq/default.nix
+++ b/pkgs/development/tools/jq/default.nix
@@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
   version="1.5";
 
   src = fetchurl {
-    url="https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz";
+    url="https://github.com/stedolan/jq/releases/download/jq-${version}/jq-${version}.tar.gz";
     sha256="0g29kyz4ykasdcrb0zmbrp2jqs9kv1wz9swx849i2d1ncknbzln4";
   };
 
@@ -35,5 +35,8 @@ stdenv.mkDerivation rec {
     license = lib.licenses.mit;
     maintainers = with lib.maintainers; [ raskin ];
     platforms = with lib.platforms; linux ++ darwin;
+    downloadPage = "http://stedolan.github.io/jq/download/";
+    updateWalker = true;
+    inherit version;
   };
 }
diff --git a/pkgs/development/tools/jq/default.upstream b/pkgs/development/tools/jq/default.upstream
deleted file mode 100644
index 1ad914d717e0..000000000000
--- a/pkgs/development/tools/jq/default.upstream
+++ /dev/null
@@ -1 +0,0 @@
-url http://stedolan.github.io/jq/download/