571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
35 lines
994 B
Nix
35 lines
994 B
Nix
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, darwin }:
|
|
|
|
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 ];
|
|
|
|
cargoHash = "sha256-QNMdqoxxY8ao2O44hJxZNgLrPwzu9+ieweTPc7pfFY4=";
|
|
|
|
nativeBuildInputs = [pkg-config];
|
|
buildInputs = [openssl]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
Security
|
|
SystemConfiguration
|
|
]);
|
|
|
|
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;
|
|
mainProgram = "transmission-rss";
|
|
};
|
|
}
|