Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
981 B
Nix
50 lines
981 B
Nix
{
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
fontconfig,
|
|
libiconv,
|
|
stdenv,
|
|
libxcb,
|
|
lib,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sss_code";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SergioRibera";
|
|
repo = "sss";
|
|
rev = "sss_code/v${version}";
|
|
hash = "sha256-AmJFAwHfG4R2iRz9zNeZsVFLptVy499ozQ7jgwnevOo=";
|
|
};
|
|
|
|
cargoHash = "sha256-qeDZgrGPSz+wXolZeVb2FFHjLzl1+vjzMN/3NCgaf/s=";
|
|
|
|
cargoBuildFlags = [
|
|
"-p"
|
|
"sss_code"
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.buildPlatform.isDarwin [ libiconv ];
|
|
|
|
buildInputs = [
|
|
fontconfig
|
|
libxcb
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Libraries and tools for building screenshots in a high-performance image format";
|
|
mainProgram = "sss_code";
|
|
homepage = "https://github.com/SergioRibera/sss";
|
|
license = with licenses; [
|
|
asl20
|
|
mit
|
|
];
|
|
maintainers = with maintainers; [ krovuxdev ];
|
|
};
|
|
}
|