diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-01-30 11:29:45 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-01-30 11:44:15 +0100 |
commit | 5fdc6db95718275f12a3efed326ff2e231524e1e (patch) | |
tree | 417b938c0edef6c7a9945ee7627c98361aa9b67c | |
parent | e7ec067b6b5e28747c13a5a69703b597b143e4ab (diff) |
Revert "add nix-prefetch-source (#21734)"
This reverts commit ca38ef79e9d1530cd32890bf9e4760096f25f048 due its use of importJSON and external source info files, which is non-idiomatic.
-rw-r--r-- | pkgs/tools/package-management/nix-update-source/default.nix | 29 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 0 insertions, 31 deletions
diff --git a/pkgs/tools/package-management/nix-update-source/default.nix b/pkgs/tools/package-management/nix-update-source/default.nix deleted file mode 100644 index 06ac8203f8221..0000000000000 --- a/pkgs/tools/package-management/nix-update-source/default.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ lib, pkgs, fetchFromGitHub, python3Packages, nix-prefetch-scripts }: -python3Packages.buildPythonApplication rec { - version = "0.2.1"; - name = "nix-update-source-${version}"; - src = fetchFromGitHub { - owner = "timbertson"; - repo = "nix-update-source"; - rev = "version-${version}"; - sha256 = "1w3aj0kjp8zhxkzqxnm5srrsqsvrmxhn4sqkr4kjffh61jg8jq8a"; - }; - propagatedBuildInputs = [ nix-prefetch-scripts ]; - passthru = { - fetch = path: - let - fetchers = { - # whitelist of allowed fetchers - inherit (pkgs) fetchgit fetchurl fetchFromGitHub; - }; - json = lib.importJSON path; - fetchFn = builtins.getAttr json.fetch.fn fetchers; - src = fetchFn json.fetch.args; - in - json // { inherit src; }; - }; - meta = { - description = "Utility to autimate updating of nix derivation sources"; - maintainers = with lib.maintainers; [ timbertson ]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1e4c3c94272cc..ddc6d5062db46 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17567,8 +17567,6 @@ with pkgs; nix-prefetch-zip nix-prefetch-scripts; - nix-update-source = callPackage ../tools/package-management/nix-update-source {}; - nix-template-rpm = callPackage ../build-support/templaterpm { inherit (pythonPackages) python toposort; }; nix-repl = callPackage ../tools/package-management/nix-repl { }; |