diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-04-15 17:47:29 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-04-15 17:47:29 +0200 |
commit | de8c767c832cdf79fc66d552966706140c1cb067 (patch) | |
tree | 093c40557b68cfb9794fb181b7899b34022d86db /release.nix | |
parent | ddf8c41e9107911d0979c2747791aca859dd0362 (diff) |
release.nix: Switch channel over to mkChannel.
The channel now serves more or less as a generic channel, which has no constituents and thus should always be the most up-to-date channel for vuizvui. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'release.nix')
-rw-r--r-- | release.nix | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/release.nix b/release.nix index 5dd77653..ef42bc84 100644 --- a/release.nix +++ b/release.nix @@ -5,6 +5,7 @@ let system = "x86_64-linux"; pkgsUpstream = import <nixpkgs> { inherit system; }; + root = import ./default.nix { inherit system; }; in with pkgsUpstream.lib; with builtins; { @@ -23,19 +24,11 @@ in with pkgsUpstream.lib; with builtins; { }; in with releaseLib; mapTestOn (packagePlatforms releaseLib.pkgs); - channel = pkgs.stdenv.mkDerivation rec { + channel = root.pkgs.mkChannel rec { name = "vuizvui-channel-${version}"; + channelName = "generic"; version = "${toString vuizvui.revCount}.${vuizvui.shortRev}"; src = vuizvui; - phases = [ "unpackPhase" "installPhase" ]; - installPhase = '' - mkdir -p "$out/tarballs" "$out/nix-support" - tar cJf "$out/tarballs/nixexprs.tar.xz" \ - --owner=0 --group=0 --mtime="1970-01-01 00:00:00 UTC" \ - --transform='s!^\.!${name}!' . - echo "file channel $out/tarballs/nixexprs.tar.xz" \ - > "$out/nix-support/hydra-build-products" - ''; }; manual = let |