diff --git a/overlays/default.nix b/overlays/default.nix index 7a59450..30a2777 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,5 +1,3 @@ self: super: -{ - readarr = super.callPackage ./readarr { }; -} +{} diff --git a/overlays/readarr.nix b/overlays/readarr.nix deleted file mode 100644 index e07f560..0000000 --- a/overlays/readarr.nix +++ /dev/null @@ -1,53 +0,0 @@ -{ lib, stdenv, fetchurl, mono, libmediainfo, sqlite, curl, makeWrapper, nixosTests }: - -let - os = if stdenv.isDarwin then "osx" else "linux"; - arch = { - x86_64-linux = "x64"; - aarch64-linux = "arm64"; - x86_64-darwin = "x64"; - aarch64-darwin = "arm64"; - }."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); - - hash = { - x64-linux_hash = ""; - arm64-linux_hash = ""; - x64-osx_hash = ""; - arm64-osx_hash = ""; - }."${arch}-${os}_hash"; - -in stdenv.mkDerivation rec { - pname = "readarr"; - version = "0.1.0.1248"; - - src = fetchurl { - url = "https://github.com/Readarr/Readarr/releases/download/v${version}/Readarr.develop.${version}.${os}-core-${arch}.tar.gz"; - sha256 = hash; - }; - - nativeBuildInputs = [ makeWrapper ]; - - installPhase = '' - runHook preInstall - mkdir -p $out/{bin,share/${pname}-${version}} - cp -r * $out/share/${pname}-${version}/. - makeWrapper "${dotnetCorePackages.runtime_3_1}/bin/dotnet" $out/bin/Readarr \ - --add-flags "$out/share/${pname}-${version}/Readarr.dll" \ - --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ - curl sqlite libmediainfo mono openssl icu ]} - runHook postInstall - ''; - - passthru = { - updateScript = "./update.sh"; - tests.smoke-test = nixosTests.readarr; - }; - - meta = { - description = "Ebook collection manager for Usenet and BitTorrent users"; - homepage = "https://readarr.com/"; - license = lib.licenses.gpl3Only; - maintainers = with lib.maintainers; [ tboerger ]; - platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; - }; -}