summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2012-02-23 12:00:05 +0000
committerPeter Simons <simons@cryp.to>2012-02-23 12:00:05 +0000
commitd16fdad9fd154cf7a4f1f73f1deee1f651cf9d7c (patch)
tree3f6b7136b23ba5f225895e48cdda1092c212a252 /lib
parentf0dfd7d06a8bf8889cb28d8c59d848e7544129a2 (diff)
downloadnixlib-d16fdad9fd154cf7a4f1f73f1deee1f651cf9d7c.tar
nixlib-d16fdad9fd154cf7a4f1f73f1deee1f651cf9d7c.tar.gz
nixlib-d16fdad9fd154cf7a4f1f73f1deee1f651cf9d7c.tar.bz2
nixlib-d16fdad9fd154cf7a4f1f73f1deee1f651cf9d7c.tar.lz
nixlib-d16fdad9fd154cf7a4f1f73f1deee1f651cf9d7c.tar.xz
nixlib-d16fdad9fd154cf7a4f1f73f1deee1f651cf9d7c.tar.zst
nixlib-d16fdad9fd154cf7a4f1f73f1deee1f651cf9d7c.zip
Revert "split release.nix into helpers and the jobs themselves".
Change r32480 was made due to a misunderstanding.

svn path=/nixos/trunk/; revision=32512
Diffstat (limited to 'lib')
-rw-r--r--lib/release-helpers.nix72
1 files changed, 0 insertions, 72 deletions
diff --git a/lib/release-helpers.nix b/lib/release-helpers.nix
deleted file mode 100644
index 3eacef90f2cd..000000000000
--- a/lib/release-helpers.nix
+++ /dev/null
@@ -1,72 +0,0 @@
-{ nixpkgs ? ../../nixpkgs }:
-
-{
-  makeIso =
-    { module, type, description ? type, maintainers ? ["eelco"] }:
-    { nixosSrc ? {outPath = ./.; rev = 1234;}
-    , officialRelease ? false
-    , system ? "i686-linux"
-    }:
-
-    with import nixpkgs {inherit system;};
-
-    let
-
-      version = builtins.readFile ../VERSION + (if officialRelease then "" else "pre${toString nixosSrc.rev}");
-
-      versionModule =
-        { system.nixosVersion = version;
-          isoImage.isoBaseName = "nixos-${type}";
-        };
-
-      config = (import ./eval-config.nix {
-        inherit system nixpkgs;
-        modules = [ module versionModule ];
-      }).config;
-
-      iso = config.system.build.isoImage;
-
-    in
-      # Declare the ISO as a build product so that it shows up in Hydra.
-      runCommand "nixos-iso-${version}"
-        { meta = {
-            description = "NixOS installation CD (${description}) - ISO image for ${system}";
-            maintainers = map (x: lib.getAttr x lib.maintainers) maintainers;
-          };
-          inherit iso;
-          passthru = { inherit config; };
-        }
-        ''
-          ensureDir $out/nix-support
-          echo "file iso" $iso/iso/*.iso* >> $out/nix-support/hydra-build-products
-        ''; # */
-
-
-  makeSystemTarball =
-    { module, maintainers ? ["viric"]}:
-    { nixosSrc ? {outPath = ./.; rev = 1234;}
-    , officialRelease ? false
-    , system ? "i686-linux"
-    }:
-
-    with import nixpkgs {inherit system;};
-    let
-      version = builtins.readFile ../VERSION + (if officialRelease then "" else "pre${toString nixosSrc.rev}");
-
-      versionModule = { system.nixosVersion = version; };
-
-      config = (import ./eval-config.nix {
-        inherit system nixpkgs;
-        modules = [ module versionModule ];
-      }).config;
-
-      tarball = config.system.build.tarball;
-    in
-      tarball //
-        { meta = {
-            description = "NixOS system tarball for ${system} - ${stdenv.platform.name}";
-            maintainers = map (x: lib.getAttr x lib.maintainers) maintainers;
-          };
-          inherit config;
-        };
-}