From 9420326db0b7c04a4047610dace77d9d3c140fed Mon Sep 17 00:00:00 2001 From: StepBroBD Date: Sun, 9 Apr 2023 15:14:22 -0600 Subject: [PATCH] crunchy-cli: init at 3.0.0-dev.10 --- .../video/crunchy-cli/default.nix | 44 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/applications/video/crunchy-cli/default.nix diff --git a/pkgs/applications/video/crunchy-cli/default.nix b/pkgs/applications/video/crunchy-cli/default.nix new file mode 100644 index 000000000000..917fdd2f9a24 --- /dev/null +++ b/pkgs/applications/video/crunchy-cli/default.nix @@ -0,0 +1,44 @@ +{ lib +, stdenv +, clangStdenv +, darwin +, xcbuild +, openssl +, pkg-config +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } rec { + pname = "crunchy-cli"; + version = "3.0.0-dev.10"; + + src = fetchFromGitHub { + owner = "crunchy-labs"; + repo = pname; + rev = "v${version}"; + hash = "sha256-uc19SmVfa5BZYDidlEgV6GNvcm9Dj0mSjdwHP5S+O4A="; + }; + + cargoHash = "sha256-H3D55qMUAF6t45mRbGZl+DORAl1H1a7AOe+lQP0WUUQ="; + + nativeBuildInputs = [ + pkg-config + ] ++ lib.optionals stdenv.isDarwin [ + xcbuild + ]; + + buildInputs = [ + openssl + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + meta = with lib; { + description = "A pure Rust written Crunchyroll cli client and downloader"; + homepage = "https://github.com/crunchy-labs/crunchy-cli"; + license = with licenses; [ gpl3 ]; + maintainers = with maintainers; [ stepbrobd ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7ccf3d838138..aaa418f009d7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4358,6 +4358,8 @@ with pkgs; crunch = callPackage ../tools/security/crunch { }; + crunchy-cli = callPackage ../applications/video/crunchy-cli { }; + crudini = callPackage ../tools/misc/crudini { }; csv2odf = callPackage ../applications/office/csv2odf { };