about summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-04-29 06:24:40 +0200
committeraszlig <aszlig@redmoonstudios.org>2015-04-29 06:24:40 +0200
commit23a7bc6a7590ebced5828e09c09d6e7a39188d74 (patch)
tree5e14ae67b83b02df5ef6243e9e99830c24c756d5 /release.nix
parent4d1787da3fa6bacc8a187fad8a01414011ea1f34 (diff)
Handle all <nixpkgs> paths with nixpkgs-path.nix.
This file is just defaulting to <nixpkgs>, 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 <nixpkgs>, but the latter can best be done
on Hydra's side if we don't make <nixpkgs> available to vuizvui builds.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix20
1 files changed, 13 insertions, 7 deletions
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 = <nixpkgs>; 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 <nixpkgs> { 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 <nixpkgs/pkgs/top-level/release-lib.nix> {
+    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 <nixpkgs/nixos/lib/eval-config.nix> {
+    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>} \
+        "${nixpkgs}/nixos/doc/manual/options-to-docbook.xsl" \
         ${optionsFile}
 
       cat > manual.xml <<XML
@@ -96,7 +102,7 @@ in with pkgsUpstream.lib; with builtins; {
         ${pkgsUpstream.docbook5_xsl}/xml/xsl/docbook/xhtml/docbook.xsl \
         manual.xml
 
-      cp "${<nixpkgs/nixos/doc/manual/style.css>}" "$out/style.css"
+      cp "${nixpkgs}/nixos/doc/manual/style.css" "$out/style.css"
 
       mkdir -p "$out/nix-support"
       echo "doc manual $out manual.html" \