nix-configs/overlays/recyclarr.nix

23 lines
683 B
Nix
Raw Normal View History

2024-08-20 12:25:27 -04:00
final: prev:
2024-08-20 12:18:50 -04:00
let
os = "linux";
arch = "x64";
2024-08-20 12:25:27 -04:00
hash = "sha256:04vg1s86krg7baifcpnqr5zg6jd6nfw0jhjsq09zzpxwg5skxlf7";
version = "7.2.1";
2024-08-20 12:18:50 -04:00
in
{
2024-08-20 12:25:27 -04:00
recyclarr = prev.recyclarr.overrideAttrs (old: {
inherit version;
2024-08-20 12:18:50 -04:00
name = "recyclarr-${version}";
2024-08-20 12:25:27 -04:00
src = prev.fetchurl {
2024-08-20 12:18:50 -04:00
url = "https://github.com/recyclarr/recyclarr/releases/download/v${version}/recyclarr-${os}-${arch}.tar.xz";
inherit hash;
};
2024-08-20 14:51:46 -04:00
postInstall = ''
wrapProgram $out/bin/recyclarr \
--prefix PATH : ${prev.lib.makeBinPath [prev.git]} \
2024-08-20 15:04:29 -04:00
--prefix LD_LIBRARY_PATH : ${prev.lib.makeLibraryPath [prev.icu prev.openssl prev.zlib]}
2024-08-20 14:51:46 -04:00
'';
2024-08-20 12:18:50 -04:00
});
}