diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2016-10-16 12:18:31 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2016-10-16 12:18:31 +0300 |
commit | 2a1cb909dec7feb1fc6a3530bd9d70cd3de82884 (patch) | |
tree | 910925d944cc7f4b0d83fd70b59a9732fd6ac600 /modules | |
parent | b40e89f23632d3fabe95bbf214bb77a32567b3d9 (diff) | |
download | nixsap-2a1cb909dec7feb1fc6a3530bd9d70cd3de82884.tar.gz |
pkgs.jenkinsUpdateCenter for simple overrides
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pkgs/jenkinsUpdateCenter/default.nix | 17 | ||||
-rw-r--r-- | modules/pkgs/jenkinsUpdateCenter/update-center.actual.json (renamed from modules/pkgs/jenkinsWithPlugins/update-center.actual.json) | 0 | ||||
-rw-r--r-- | modules/pkgs/jenkinsWithPlugins/default.nix | 8 |
3 files changed, 18 insertions, 7 deletions
diff --git a/modules/pkgs/jenkinsUpdateCenter/default.nix b/modules/pkgs/jenkinsUpdateCenter/default.nix new file mode 100644 index 0000000..f72dca1 --- /dev/null +++ b/modules/pkgs/jenkinsUpdateCenter/default.nix @@ -0,0 +1,17 @@ +{}: + +/* + This package exists to override Jenkins easily. + You override this package instead of jenkinsWithPlugins. + You even can fetch from Jenkins site directly. +*/ + + +/* + jq to make it human readable: + curl https://updates.jenkins-ci.org/current/update-center.actual.json | jq . > update-center.actual.json +*/ + + +# capture into nix store to track changes: +"${./update-center.actual.json}" diff --git a/modules/pkgs/jenkinsWithPlugins/update-center.actual.json b/modules/pkgs/jenkinsUpdateCenter/update-center.actual.json index d6d8ee5..d6d8ee5 100644 --- a/modules/pkgs/jenkinsWithPlugins/update-center.actual.json +++ b/modules/pkgs/jenkinsUpdateCenter/update-center.actual.json diff --git a/modules/pkgs/jenkinsWithPlugins/default.nix b/modules/pkgs/jenkinsWithPlugins/default.nix index 74f6aa7..8b222a5 100644 --- a/modules/pkgs/jenkinsWithPlugins/default.nix +++ b/modules/pkgs/jenkinsWithPlugins/default.nix @@ -20,13 +20,7 @@ let inherit (lib) concatMapStrings filter flatten unique ; - /* - jq to make it human readable: - curl https://updates.jenkins-ci.org/current/update-center.actual.json | jq . > update-center.actual.json - */ - - # capture into nix store to track changes: - updateCenter = fromJSON (readFile "${./update-center.actual.json}"); + updateCenter = fromJSON (readFile pkgs.jenkinsUpdateCenter); core = with updateCenter.core; fetchurl { inherit url; |