From bab3c1953da3ba314444824d8a18ff69dbd288dc Mon Sep 17 00:00:00 2001 From: confusedalex Date: Wed, 17 Jul 2024 11:40:02 +0200 Subject: [PATCH] talecast: init at 0.1.39 (#321113) Co-authored-by: Sandro --- maintainers/maintainer-list.nix | 6 ++++ pkgs/by-name/ta/talecast/package.nix | 42 ++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 pkgs/by-name/ta/talecast/package.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index b152198f3f12..c58880d779b3 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3986,6 +3986,12 @@ githubId = 11145016; name = "J.C."; }; + confusedalex = { + email = "alex@confusedalex.dev"; + github = "ConfusedAlex"; + githubId = 29258035; + name = "Alexander Loll"; + }; congee = { email = "changshengwu@pm.me"; matrix = "@congeec:matrix.org"; diff --git a/pkgs/by-name/ta/talecast/package.nix b/pkgs/by-name/ta/talecast/package.nix new file mode 100644 index 000000000000..df0f994d5144 --- /dev/null +++ b/pkgs/by-name/ta/talecast/package.nix @@ -0,0 +1,42 @@ +{ + lib, + fetchCrate, + darwin, + rustPlatform, + pkg-config, + openssl, + nix-update-script, + stdenv, + testers, + talecast +}: + +rustPlatform.buildRustPackage rec { + pname = "talecast"; + version = "0.1.39"; + + src = fetchCrate { + inherit pname version; + hash = "sha256-RwB+X+i3CEcTyKac81he9/cT2aQ4M7AqgqSDBEvhFJU="; + }; + + cargoHash = "sha256-mIzrYlAqHYrK2bb/ZUzqIwhPJKcTQpNpqijpEuwLc5A="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ] + ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ]; + + passthru = { + updateScript = nix-update-script { }; + tests.version = testers.testVersion { package = talecast; }; + }; + + meta = { + description = "Simple CLI podcatcher"; + homepage = "https://github.com/TBS1996/TaleCast"; + license = lib.licenses.mit; + mainProgram = "talecast"; + maintainers = with lib.maintainers; [ confusedalex getchoo ]; + }; +}