From e2dacab501983da8a7b78ac348bfa1b5e6f08911 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 17 Jul 2017 22:48:32 +0200 Subject: [PATCH] ma sources: refactor redundant musnix in [vw]bob, studio --- 1systems/vbob/source.nix | 7 ++----- 1systems/wbob/source.nix | 7 ++----- source.nix | 17 +++++++++++++++-- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/1systems/vbob/source.nix b/1systems/vbob/source.nix index af0f378..5b726e4 100644 --- a/1systems/vbob/source.nix +++ b/1systems/vbob/source.nix @@ -1,7 +1,4 @@ import { - name="studio"; - override.musnix.git = { - url = https://github.com/musnix/musnix.git; - ref = "d8b989f"; - }; + name="vbob"; + musnix = true; } diff --git a/1systems/wbob/source.nix b/1systems/wbob/source.nix index af0f378..6f079d7 100644 --- a/1systems/wbob/source.nix +++ b/1systems/wbob/source.nix @@ -1,7 +1,4 @@ import { - name="studio"; - override.musnix.git = { - url = https://github.com/musnix/musnix.git; - ref = "d8b989f"; - }; + name="wbob"; + musnix = true; } diff --git a/source.nix b/source.nix index 02ec2c1..ec86e7f 100644 --- a/source.nix +++ b/source.nix @@ -1,10 +1,17 @@ with import ; -host@{ name, secure ? false, override ? {}, full ? false, torrent ? false }: let +host@{ name, + override ? {}, + secure ? false, + full ? false, + torrent ? false, + musnix ? false +}: +let builder = if getEnv "dummy_secrets" == "true" then "buildbot" else "makefu"; _file = + "/makefu/1systems/${name}/source.nix"; - ref = "0751450"; # unstable @ 2017-07-16 + graceful requests2 (a772c3aa) + ref = "74b40c3"; # unstable @ 2017-07-16 + graceful requests2 (a772c3aa) + libpurple bitlbee in evalSource (toString _file) [ @@ -32,6 +39,12 @@ in stockholm.file = toString ; } + (mkIf ( musnix ) { + musnix.git = { + url = https://github.com/musnix/musnix.git; + ref = "d8b989f"; + }; + }) (mkIf ( torrent ) { torrent-secrets.file = getAttr builder { buildbot = toString ;