diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-12-01 19:00:09 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-12-01 19:00:09 +0100 |
commit | 9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d (patch) | |
tree | 4368f9e4cb2d5b93a956c085337e45cb70f1e331 /nixpkgs/pkgs/by-name/sc | |
parent | a9cbfb6941b47d6f50129e6e36927882392daed7 (diff) | |
parent | 2344fe1da14cb08b0c18743b207995f9b8597915 (diff) | |
download | nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.gz nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.bz2 nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.lz nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.xz nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.zst nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.zip |
Merge https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/by-name/sc')
-rw-r--r-- | nixpkgs/pkgs/by-name/sc/screenly-cli/package.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/sc/screenly-cli/package.nix b/nixpkgs/pkgs/by-name/sc/screenly-cli/package.nix new file mode 100644 index 000000000000..4113e3c57f4c --- /dev/null +++ b/nixpkgs/pkgs/by-name/sc/screenly-cli/package.nix @@ -0,0 +1,57 @@ +{ darwin +, fetchpatch +, fetchFromGitHub +, lib +, perl +, pkg-config +, openssl +, rustPlatform +, stdenv +}: + +rustPlatform.buildRustPackage rec { + pname = "screenly-cli"; + version = "0.2.3"; + + src = fetchFromGitHub { + owner = "screenly"; + repo = "cli"; + rev = "refs/tags/v${version}"; + hash = "sha256-rQK1EYb1xYtcxq0Oj4eY9PCFMoaYinr42W8NkG36ps0="; + }; + + cargoPatches = [ + # This patch introduces the Cargo.lock file, which was previously missing from the repository. + # This can be removed at the next release of the Screenly CLI. The patch was introduced in + # this PR: https://github.com/Screenly/cli/pull/139. + (fetchpatch { + url = "https://github.com/Screenly/cli/commit/898bd2e5e3a9653e3c3dde17e951469885734c40.patch"; + hash = "sha256-Cqc1PHRhgS3zK19bSqpU2v+R3jSlOY6oaLJXpUy6+50="; + includes = [ "Cargo.lock" ]; + }) + ]; + + cargoHash = "sha256-TzJ56Wuk77qrxDLL17fYEj4i/YhAS6DRmjoqrzb+5AA="; + + nativeBuildInputs = [ + pkg-config + perl + ]; + + buildInputs = [ + openssl + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.CoreFoundation + darwin.apple_sdk.frameworks.CoreServices + darwin.apple_sdk.frameworks.Security + darwin.apple_sdk.frameworks.SystemConfiguration + ]; + + meta = { + description = "Tools for managing digital signs and screens at scale"; + homepage = "https://github.com/Screenly/cli"; + license = lib.licenses.mit; + mainProgram = "screenly"; + maintainers = with lib.maintainers; [ jnsgruk vpetersson ]; + }; +} |