depot/third_party/nixpkgs/pkgs/by-name/co/cosmic-screenshot/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

48 lines
1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
just,
pkg-config,
}:
rustPlatform.buildRustPackage rec {
pname = "cosmic-screenshot";
version = "1.0.0-alpha.6";
src = fetchFromGitHub {
owner = "pop-os";
repo = pname;
rev = "epoch-${version}";
hash = "sha256-/sGYF+XWmPraNGlBVUcN/nokDB9JwWViEAL9gVH3ZaI=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-1r0Uwcf4kpHCgWqrUYZELsVXGDzbtbmu/WFeX53fBiQ=";
nativeBuildInputs = [
just
pkg-config
];
dontUseJustBuild = true;
justFlags = [
"--set"
"prefix"
(placeholder "out")
"--set"
"bin-src"
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-screenshot"
];
meta = with lib; {
homepage = "https://github.com/pop-os/cosmic-screenshot";
description = "Screenshot tool for the COSMIC Desktop Environment";
license = licenses.gpl3Only;
maintainers = with maintainers; [ nyabinary ];
platforms = platforms.linux;
mainProgram = "cosmic-screenshot";
};
}