diff options
author | Edward Tjörnhammar <ed@cflags.cc> | 2017-03-25 21:18:34 +0100 |
---|---|---|
committer | Edward Tjörnhammar <ed@cflags.cc> | 2017-03-25 21:19:55 +0100 |
commit | b35d22b30c8c6834842382c71124021372e837a5 (patch) | |
tree | 7ce7a367d3337d2936b3da750767e4a2f47967bd /pkgs/servers/radarr/default.nix | |
parent | 2db5c5cfe2aa4700dba8daef75e2e9f8e148c01e (diff) |
radarr: init at 0.2.0.553 + nixos module
Diffstat (limited to 'pkgs/servers/radarr/default.nix')
-rw-r--r-- | pkgs/servers/radarr/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/servers/radarr/default.nix b/pkgs/servers/radarr/default.nix new file mode 100644 index 0000000000000..446927745a908 --- /dev/null +++ b/pkgs/servers/radarr/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, mono, libmediainfo, sqlite, makeWrapper }: + +stdenv.mkDerivation rec { + name = "radarr-${version}"; + version = "0.2.0.535"; + + src = fetchurl { + url = "https://github.com/Radarr/Radarr/releases/download/v${version}/Radarr.develop.${version}.linux.tar.gz"; + sha256 = "1ccvblklqn5iki7gc16bzzbwms28mv4kxzv1nwhlm9vf0cw4qxbr"; + }; + + buildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir -p $out/{bin,share/${name}} + cp -r * $out/share/${name}/. + + makeWrapper "${mono}/bin/mono" $out/bin/Radarr \ + --add-flags "$out/share/${name}/Radarr.exe" \ + --prefix LD_LIBRARY_PATH ':' "${sqlite.out}/lib" \ + --prefix LD_LIBRARY_PATH ':' "${libmediainfo}/lib" + ''; + + meta = with stdenv.lib; { + description = "A Usenet/BitTorrent movie downloader."; + homepage = https://radarr.video/; + license = licenses.gpl3; + maintainers = with maintainers; [ edwtjo ]; + platforms = platforms.all; + }; +} |