mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
cosmic-reader: init at 0-unstable-2025-08-29
This commit is contained in:
parent
d7814af8f2
commit
b66c11dc88
1 changed files with 81 additions and 0 deletions
81
pkgs/by-name/co/cosmic-reader/package.nix
Normal file
81
pkgs/by-name/co/cosmic-reader/package.nix
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
{
|
||||
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-08-29";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pop-os";
|
||||
repo = "cosmic-reader";
|
||||
rev = "b877809273243f0630b250fd60f12fff48e0bd22";
|
||||
hash = "sha256-kJApZgQkHDP6lD9E2vPLyVGQ0o/xibm83N9CfIJAd0A=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue