Files
nixpkgs/pkgs/by-name/rn/rnote/package.nix
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

102 lines
1.9 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
alsa-lib,
appstream,
appstream-glib,
cargo,
cmake,
desktop-file-utils,
dos2unix,
glib,
gst_all_1,
gtk4,
libadwaita,
libxml2,
meson,
ninja,
pkg-config,
poppler,
python3,
rustPlatform,
rustc,
shared-mime-info,
wrapGAppsHook4,
}:
stdenv.mkDerivation rec {
pname = "rnote";
version = "0.13.1";
src = fetchFromGitHub {
owner = "flxzt";
repo = "rnote";
tag = "v${version}";
hash = "sha256-EMxA5QqmIae/d3nUpwKjgURo0nOyaNbma8poB5mcQW0=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-fr1bDTzTKx7TLBqw94CyaB0/Jo2x1BzZcM6dcen1PHc=";
};
nativeBuildInputs = [
appstream-glib # For appstream-util
cmake
desktop-file-utils # For update-desktop-database
dos2unix
meson
ninja
pkg-config
python3 # For the postinstall script
rustPlatform.bindgenHook
rustPlatform.cargoSetupHook
cargo
rustc
shared-mime-info # For update-mime-database
wrapGAppsHook4
];
dontUseCmakeConfigure = true;
mesonFlags = [
(lib.mesonBool "cli" true)
];
buildInputs = [
appstream
glib
gst_all_1.gstreamer
gtk4
libadwaita
libxml2
poppler
]
++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib
];
postPatch = ''
chmod +x build-aux/*.py
patchShebangs build-aux
'';
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types";
};
meta = {
homepage = "https://github.com/flxzt/rnote";
changelog = "https://github.com/flxzt/rnote/releases/tag/${src.tag}";
description = "Simple drawing application to create handwritten notes";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [
dotlambda
gepbird
yrd
];
platforms = lib.platforms.unix;
};
}