diff --git a/pkgs/tools/networking/transmission-rss/default.nix b/pkgs/tools/networking/transmission-rss/default.nix new file mode 100644 index 000000000000..50056c3ebdbc --- /dev/null +++ b/pkgs/tools/networking/transmission-rss/default.nix @@ -0,0 +1,29 @@ +{ stdenv, lib, fetchFromGitHub, rustPlatform, pkg-config, openssl }: + +rustPlatform.buildRustPackage rec { + version = "0.3.1"; + pname = "transmission-rss"; + + src = fetchFromGitHub { + owner = "herlon214"; + repo = pname; + rev = "5bbad7a81621a194b7a8b11a56051308a7ccbf06"; + sha256 = "sha256-SkEgxinqPA9feOIF68oewVyRKv3SY6fWWZLGJeH+r4M="; + }; + + cargoPatches = [ ./update-cargo-lock-version.patch ]; + + cargoSha256 = "sha256-QNMdqoxxY8ao2O44hJxZNgLrPwzu9+ieweTPc7pfFY4="; + + nativeBuildInputs = [pkg-config]; + buildInputs = [openssl]; + + OPENSSL_NO_VENDOR = 1; + + meta = with lib; { + description = "Add torrents to transmission based on RSS list"; + homepage = "https://github.com/herlon214/transmission-rss"; + maintainers = with maintainers; [ icewind1991 ]; + license = licenses.mit; + }; +} diff --git a/pkgs/tools/networking/transmission-rss/update-cargo-lock-version.patch b/pkgs/tools/networking/transmission-rss/update-cargo-lock-version.patch new file mode 100644 index 000000000000..cd5e30adb29d --- /dev/null +++ b/pkgs/tools/networking/transmission-rss/update-cargo-lock-version.patch @@ -0,0 +1,13 @@ +diff --git a/Cargo.lock b/Cargo.lock +index e75aca4..88321ec 100644 +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -2148,7 +2148,7 @@ dependencies = [ + + [[package]] + name = "transmission-rss" +-version = "0.3.0" ++version = "0.3.1" + dependencies = [ + "clap", + "env_logger", \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5282d4968775..a937ae35c5fe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1817,6 +1817,8 @@ with pkgs; topicctl = callPackage ../tools/misc/topicctl { }; + transmission-rss = callPackage ../tools/networking/transmission-rss { }; + trigger-control = callPackage ../tools/games/trigger-control { }; ttchat = callPackage ../tools/misc/ttchat { };