From cdc9919a562332b5b9b9ae8679822e72b599b233 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 2 Aug 2024 06:53:04 +0100 Subject: [PATCH] nixosTests.bittorrent: avoid use of an alias By default the use of alias generates warning: $ nix build --no-link -f. nixosTests.bittorrent evaluation warning: transmission has been renamed to transmission_3 since transmission_4 is also available. Note that upgrade caused data loss for some users so backup is recommended (see NixOS 24.11 release notes for details) When alaises are disabled that causes the eval failure: error: attribute 'transmission' missing at /home/slyfox/dev/git/nixpkgs/nixos/tests/bittorrent.nix:24:36: 23| transmissionConfig = { ... }: { 24| environment.systemPackages = [ pkgs.transmission ]; | ^ 25| services.transmission = { Did you mean one of transmission_3 or transmission_4? --- nixos/tests/bittorrent.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/bittorrent.nix b/nixos/tests/bittorrent.nix index b5f5982743a1..565e37cf0e56 100644 --- a/nixos/tests/bittorrent.nix +++ b/nixos/tests/bittorrent.nix @@ -21,7 +21,7 @@ let download-dir = "/var/lib/transmission/Downloads"; transmissionConfig = { ... }: { - environment.systemPackages = [ pkgs.transmission ]; + environment.systemPackages = [ pkgs.transmission_3 ]; services.transmission = { enable = true; settings = {