diff options
-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 |