about summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-04-01 02:55:02 +0200
committeraszlig <aszlig@redmoonstudios.org>2015-04-01 02:55:02 +0200
commitcc7db6446bdcf427b736cc7af503a5e518a3ca42 (patch)
tree69eddfb44272bbe08de52ead2e7a55e529cc16ee /release.nix
parent03135f34ece2b2170d034086340dc84bd34b6b1c (diff)
release.nix: Add channel expression files.
This is actually a store path consisting of the vuizvui sources
themselves and currently doesn't depend on anything else, so it usually
won't fail when mandatory tests or builds fail.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/release.nix b/release.nix
index 8a521288..9d8ad528 100644
--- a/release.nix
+++ b/release.nix
@@ -1,5 +1,8 @@
+{ vuizvui ? { outPath = ./.; revCount = 12345; shortRev = "abcdefg"; }
+, supportedSystems ? [ "i686-linux" "x86_64-linux" ]
+}:
+
 let
-  supportedSystems = [ "i686-linux" "x86_64-linux" ];
   system = "x86_64-linux";
   pkgs = import <nixpkgs> { inherit system; };
 
@@ -22,6 +25,12 @@ in with pkgs.lib; with builtins; {
     };
   in with releaseLib; mapTestOn (packagePlatforms releaseLib.pkgs);
 
+  channel = pkgs.srcOnly rec {
+    name = "vuizvui-channel-${version}";
+    version = "${toString vuizvui.revCount}.${vuizvui.shortRev}";
+    src = vuizvui;
+  };
+
   manual = let
     modules = import <nixpkgs/nixos/lib/eval-config.nix> {
       modules = import ./modules/module-list.nix;