Skip to content

Commit 4ea9744

Browse files
committed
Pin transmission to particular nixpkgs hash
1 parent 71c52aa commit 4ea9744

File tree

3 files changed

+28
-7
lines changed

3 files changed

+28
-7
lines changed

flake.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
inputs = {
77
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
88
nixpkgs-25_11.url = "github:NixOS/nixpkgs/release-25.11";
9+
# Keep Transmission pinned independently from the moving release-25.11 branch.
10+
# TODO: remove this input when trackers allow 4.1.0+.
11+
nixpkgs-transmission.url = "github:NixOS/nixpkgs/12d60a4f2d5f2cc96e93ae5615328245d49ac2e8";
912

1013
# Use staging-next if needed
1114
#nixpkgs-staging-next.url = "github:NixOS/nixpkgs/staging-next";

overlays/default.nix

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@
1717
pkgs = getPkgs inputs.nixpkgs;
1818
pkgsLldb = getPkgs inputs.debugserver;
1919
pkgsRelease = getPkgs inputs.nixpkgs-25_11;
20+
pkgsTransmission = getPkgs inputs.nixpkgs-transmission;
2021
pkgsQuartzWm = getPkgs inputs.nixpkgs-quartz-wm;
2122
llmAgentsPkgs = inputs.llm-agents.packages.${prev.system};
22-
releaseTransmission =
23-
if prev.lib.strings.hasPrefix "4.0." pkgsRelease.transmission_4.version then
24-
pkgsRelease.transmission_4
23+
pinnedTransmission =
24+
if prev.lib.strings.hasPrefix "4.0." pkgsTransmission.transmission_4.version then
25+
pkgsTransmission.transmission_4
2526
else
26-
throw "Expected transmission_4 from nixpkgs-25_11 to be 4.0.x, got ${pkgsRelease.transmission_4.version}";
27+
throw "Expected transmission_4 from nixpkgs-transmission to be 4.0.x, got ${pkgsTransmission.transmission_4.version}";
2728
# Temporary Darwin firefox wrapper backport:
2829
# in our pinned nixpkgs revision, wrapper logic copies only *.dylib symlinks.
2930
# Some shared libraries are Mach-O dylibs without that suffix, which leaves them
@@ -61,11 +62,11 @@
6162
# pull latest from nixpkgs; ignore what comes from rpi5 repo nixpkgs
6263
inherit (pkgs) netbootxyz-efi;
6364

64-
# Pull Sonarr/Readarr and pin Transmission to 4.0.x from release-25.11.
65+
# Pull Sonarr/Readarr from release-25.11 and pin Transmission via a dedicated nixpkgs input.
6566
# TODO: report issues; investigate; fix
6667
inherit (pkgsRelease) readarr sonarr;
67-
transmission_4 = releaseTransmission;
68-
transmission = releaseTransmission;
68+
transmission_4 = pinnedTransmission;
69+
transmission = pinnedTransmission;
6970

7071
jellyfin = prev.jellyfin.overrideAttrs (old: {
7172
patches = old.patches or [ ] ++ [

0 commit comments

Comments
 (0)