Skip to content

Commit

Permalink
sss_code: init at 0.2.0 (#302495)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Dec 23, 2024
2 parents c64c1c9 + 1cdf850 commit 2e5433f
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12272,6 +12272,12 @@
githubId = 5759930;
name = "Alexis Destrez";
};
krovuxdev = {
name = "krovuxdev";
email = "[email protected]";
github = "krovuxdev";
githubId = 62192487;
};
krupkat = {
github = "krupkat";
githubId = 6817216;
Expand Down
51 changes: 51 additions & 0 deletions pkgs/by-name/ss/sss_code/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
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=";
};

useFetchCargoVendor = true;

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 ];
};
}

0 comments on commit 2e5433f

Please sign in to comment.