From 23a7bc6a7590ebced5828e09c09d6e7a39188d74 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 29 Apr 2015 06:24:40 +0200 Subject: Handle all paths with nixpkgs-path.nix. This file is just defaulting to , but we're going to substitue it by the channel generator. We also need to make sure that we don't have any other references to , but the latter can best be done on Hydra's side if we don't make available to vuizvui builds. Signed-off-by: aszlig --- release.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'release.nix') diff --git a/release.nix b/release.nix index 4a1db9a1..5e40ea59 100644 --- a/release.nix +++ b/release.nix @@ -1,11 +1,17 @@ -{ vuizvui ? { outPath = ./.; revCount = 12345; shortRev = "abcdefg"; } -, nixpkgs ? { outPath = ; revCount = 12345; shortRev = "abcdefg"; } +{ vuizvui ? { outPath = ./.; + revCount = 12345; + shortRev = "abcdefg"; + } +, nixpkgs ? { outPath = import ./nixpkgs-path.nix; + revCount = 12345; + shortRev = "abcdefg"; + } , supportedSystems ? [ "i686-linux" "x86_64-linux" ] }: let system = "x86_64-linux"; - pkgsUpstream = import { inherit system; }; + pkgsUpstream = import nixpkgs { inherit system; }; root = import ./default.nix { inherit system; }; in with pkgsUpstream.lib; with builtins; { @@ -19,7 +25,7 @@ in with pkgsUpstream.lib; with builtins; { }); pkgs = let - releaseLib = import { + releaseLib = import "${nixpkgs}/pkgs/top-level/release-lib.nix" { inherit supportedSystems; packageSet = attrs: (import ./default.nix attrs).pkgs; }; @@ -52,7 +58,7 @@ in with pkgsUpstream.lib; with builtins; { }; manual = let - modules = import { + modules = import "${nixpkgs}/nixos/lib/eval-config.nix" { modules = import ./modules/module-list.nix; check = false; inherit system; @@ -77,7 +83,7 @@ in with pkgsUpstream.lib; with builtins; { buildCommand = '' xsltproc -o options-db.xml \ - ${} \ + "${nixpkgs}/nixos/doc/manual/options-to-docbook.xsl" \ ${optionsFile} cat > manual.xml <}" "$out/style.css" + cp "${nixpkgs}/nixos/doc/manual/style.css" "$out/style.css" mkdir -p "$out/nix-support" echo "doc manual $out manual.html" \ -- cgit 1.4.1