Skip to content

Commit d31f7c7

Browse files
committed
flake.nix: update overrideWaypipe to 0.9.0 and make it optional
1 parent ea4cab3 commit d31f7c7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

flake.nix

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,19 @@
2222
"aarch64-linux"
2323
];
2424

25+
# https://github.com/NixOS/nixpkgs/pull/296538
26+
# TODO: remove entirely after NixOS 24.05
2527
overrideWaypipe = pkgs:
26-
pkgs.waypipe.overrideAttrs (attrs: {
27-
version = "unstable-2023-10-02";
28+
if builtins.compareVersions pkgs.waypipe.version "0.9" >= 0
29+
then pkgs.waypipe
30+
else pkgs.waypipe.overrideAttrs (attrs: rec {
31+
version = "0.9.0";
2832
src = pkgs.fetchFromGitLab {
2933
domain = "gitlab.freedesktop.org";
3034
owner = "mstoeckl";
3135
repo = "waypipe";
32-
rev = "ca4809435e781dfc6bd3006fde605860c8dcf179";
33-
hash = "sha256-tSLPlf7fVq8vwbr7fHotqM/sBSXYMDM1V5yth5bhi38=";
36+
rev = "v${version}";
37+
hash = "sha256-zk5IzZiFff9EeJn24/QmE1ybcBkxpaz6Owp77CfCwV0=";
3438
};
3539
});
3640
in

0 commit comments

Comments
 (0)