aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2016-10-16 12:18:31 +0300
committerIgor Pashev <pashev.igor@gmail.com>2016-10-16 12:18:31 +0300
commit2a1cb909dec7feb1fc6a3530bd9d70cd3de82884 (patch)
tree910925d944cc7f4b0d83fd70b59a9732fd6ac600 /modules
parentb40e89f23632d3fabe95bbf214bb77a32567b3d9 (diff)
downloadnixsap-2a1cb909dec7feb1fc6a3530bd9d70cd3de82884.tar.gz
pkgs.jenkinsUpdateCenter for simple overrides
Diffstat (limited to 'modules')
-rw-r--r--modules/pkgs/jenkinsUpdateCenter/default.nix17
-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.nix8
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;