summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2008-12-17 13:25:23 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2008-12-17 13:25:23 +0000
commit28979119159bd3dadabab64ab436570de109bdcb (patch)
treee200ebddda9cb9b38926afc538c37c8edeef2920 /release.nix
parent43dc3f6baad3ce4a17b11204a892baf7c39ff12a (diff)
downloadnixpkgs-28979119159bd3dadabab64ab436570de109bdcb.tar
nixpkgs-28979119159bd3dadabab64ab436570de109bdcb.tar.gz
nixpkgs-28979119159bd3dadabab64ab436570de109bdcb.tar.bz2
nixpkgs-28979119159bd3dadabab64ab436570de109bdcb.tar.lz
nixpkgs-28979119159bd3dadabab64ab436570de109bdcb.tar.xz
nixpkgs-28979119159bd3dadabab64ab436570de109bdcb.tar.zst
nixpkgs-28979119159bd3dadabab64ab436570de109bdcb.zip
* Hydra release expression for building NixOS.
svn path=/nixos/trunk/; revision=13651
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix59
1 files changed, 59 insertions, 0 deletions
diff --git a/release.nix b/release.nix
new file mode 100644
index 00000000000..25d4aa3658c
--- /dev/null
+++ b/release.nix
@@ -0,0 +1,59 @@
+let 
+
+
+  jobs = rec {
+
+
+    tarball =
+      { nixosSrc ? {path = ./.; rev = 1234;}
+      , nixpkgs ? {path = ../nixpkgs-wc;}
+      , officialRelease ? false
+      }:
+
+      with import nixpkgs.path {};
+
+      releaseTools.makeSourceTarball {
+        name = "nixos-tarball";
+        src = nixosSrc;
+        inherit officialRelease;
+
+        distPhase = ''
+          releaseName=nixos-$(cat $src/VERSION)$VERSION_SUFFIX
+          ensureDir "$out/tarballs"
+          mkdir ../$releaseName
+          cp -prd . ../$releaseName
+          cd ..
+          tar cfvj $out/tarballs/$releaseName.tar.bz2 $releaseName
+        ''; # */
+      };
+
+
+    manual =
+      { nixosSrc ? {path = ./.; rev = 1234;}
+      , nixpkgs ? {path = ../nixpkgs-wc;}
+      , officialRelease ? false
+      }:
+
+      import "${nixosSrc.path}/doc/manual" {
+        nixpkgsPath = nixpkgs.path;
+      };
+
+
+    iso = 
+      { nixosSrc ? {path = ./.; rev = 1234;}
+      , nixpkgs ? {path = ../nixpkgs-wc;}
+      , officialRelease ? false
+      , system ? "i686-linux"
+      }:
+
+      (import "${nixosSrc.path}/installer/cd-dvd/rescue-cd.nix" {
+        platform = system;
+        compressImage = true;
+        nixpkgsPath = nixpkgs.path;
+      }).rescueCD;
+
+
+  };
+  
+
+in jobs
\ No newline at end of file