1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-26 07:43:45 +01:00

feat(overlays): drop readarr package

This commit is contained in:
Thomas Boerger 2022-04-10 20:58:47 +02:00
parent 022a9755dd
commit ec1589cc28
No known key found for this signature in database
GPG Key ID: 09745AFF9D63C79B
2 changed files with 1 additions and 56 deletions

@ -1,5 +1,3 @@
self: super:
{
readarr = super.callPackage ./readarr { };
}
{}

@ -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" ];
};
}