Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

82 lines
1.5 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
just,
libcosmicAppHook,
fontconfig,
freetype,
gumbo,
harfbuzz,
jbig2dec,
lcms2,
leptonica,
libjpeg,
openjpeg,
tesseract,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "cosmic-reader";
version = "0-unstable-2025-10-02";
src = fetchFromGitHub {
owner = "pop-os";
repo = "cosmic-reader";
rev = "2fa9595999cb654b5e6bb688035ea9ec0717b8db";
hash = "sha256-7/nes4zMcvTtGWFABikcA1NM+LxWrin0POE76BbYgKE=";
};
cargoHash = "sha256-4ofAtZN3FpYwNahinldALbdEJA5lDwa+CUsVIISnSTc=";
nativeBuildInputs = [
just
libcosmicAppHook
rustPlatform.bindgenHook
];
buildInputs = [
fontconfig
freetype
gumbo
harfbuzz
jbig2dec
lcms2
leptonica
libjpeg
openjpeg
tesseract
];
dontUseJustBuild = true;
dontUseJustCheck = true;
justFlags = [
"--set"
"prefix"
(placeholder "out")
"--set"
"cargo-target-dir"
"target/${stdenv.hostPlatform.rust.cargoShortTarget}"
];
env.VERGEN_GIT_SHA = finalAttrs.src.rev;
passthru.updateScript = nix-update-script {
extraArgs = [
"--version"
"branch=HEAD"
];
};
meta = {
description = "PDF reader for the COSMIC Desktop Environment";
homepage = "https://github.com/pop-os/cosmic-reader";
license = lib.licenses.gpl3Only;
mainProgram = "cosmic-reader";
platforms = lib.platforms.linux;
teams = [ lib.teams.cosmic ];
};
})