Merge pull request #39325 from timbertson/nix-update-source

nix-update-source: 0.4.0 -> 0.5.0
This commit is contained in:
Jörg Thalheim 2018-04-22 12:18:31 +01:00 committed by GitHub
commit 7c370ae6c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,12 @@
{ lib, pkgs, fetchFromGitHub, python3Packages, nix-prefetch-scripts }:
python3Packages.buildPythonApplication rec {
version = "0.4.0";
version = "0.5.0";
name = "nix-update-source-${version}";
src = fetchFromGitHub {
owner = "timbertson";
repo = "nix-update-source";
rev = "version-0.4.0";
sha256 = "0gz0f7nx1q697s16ya7q84q1cj020n547k2ffb99ds2r40nckr2g";
rev = "version-0.5.0";
sha256 = "13icwk249frddsmn9albasikwp8asmgvp3jf9xj9adzh63wzh1i7";
};
propagatedBuildInputs = [ nix-prefetch-scripts ];
passthru = {
@ -23,7 +23,10 @@ python3Packages.buildPythonApplication rec {
fetchFn = builtins.getAttr json.fetch.fn fetchers;
src = fetchFn json.fetch.args;
in
json // json.fetch // { inherit src; };
json // json.fetch // {
inherit src;
overrideSrc = drv: lib.overrideDerivation drv (orig: { inherit src; });
};
updateScript = ''
set -e
echo