2024-11-15 18:56:18 +00:00
|
|
|
{
|
|
|
|
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,
|
2022-01-25 07:34:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rnote";
|
2024-07-26 22:34:16 +01:00
|
|
|
version = "0.11.0";
|
2022-01-25 07:34:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flxzt";
|
|
|
|
repo = "rnote";
|
|
|
|
rev = "v${version}";
|
2024-07-26 22:34:16 +01:00
|
|
|
hash = "sha256-RbuEgmly6Mjmx58zOV+tg6Mv5ghCNy/dE5FXYrEXtdg=";
|
2022-01-25 07:34:00 +00:00
|
|
|
};
|
|
|
|
|
2023-03-25 23:16:46 +00:00
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2024-07-26 22:34:16 +01:00
|
|
|
"ink-stroke-modeler-rs-0.1.0" = "sha256-B6lT6qSOIHxqBpKTE4nO2+Xs9KF7JLVRUHOkYp8Sl+M=";
|
2024-03-02 06:24:18 +00:00
|
|
|
"piet-0.6.2" = "sha256-3juXzuKwoLuxia6MoVwbcBJ3jXBQ9QRNVoxo3yFp2Iw=";
|
2023-03-25 23:16:46 +00:00
|
|
|
};
|
2022-01-25 07:34:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-04-03 04:55:33 +01:00
|
|
|
appstream-glib # For appstream-util
|
2022-10-30 13:05:42 +00:00
|
|
|
cmake
|
2022-01-25 07:34:00 +00:00
|
|
|
desktop-file-utils # For update-desktop-database
|
2023-10-26 02:15:06 +01:00
|
|
|
dos2unix
|
2022-01-25 07:34:00 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3 # For the postinstall script
|
2023-03-16 18:16:01 +00:00
|
|
|
rustPlatform.bindgenHook
|
2022-01-25 07:34:00 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
2023-05-12 15:17:16 +01:00
|
|
|
cargo
|
|
|
|
rustc
|
2022-01-25 07:34:00 +00:00
|
|
|
shared-mime-info # For update-mime-database
|
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
2022-10-30 13:05:42 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2023-04-28 19:28:08 +01:00
|
|
|
mesonFlags = [
|
|
|
|
(lib.mesonBool "cli" true)
|
|
|
|
];
|
|
|
|
|
2024-11-15 18:56:18 +00:00
|
|
|
buildInputs =
|
|
|
|
[
|
|
|
|
appstream
|
|
|
|
glib
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
libxml2
|
|
|
|
poppler
|
|
|
|
]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
|
|
alsa-lib
|
|
|
|
];
|
2022-01-25 07:34:00 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2023-10-26 02:15:06 +01:00
|
|
|
chmod +x build-aux/*.py
|
|
|
|
patchShebangs build-aux
|
2022-01-25 07:34:00 +00:00
|
|
|
'';
|
|
|
|
|
2024-11-15 18:55:49 +00:00
|
|
|
env = lib.optionalAttrs stdenv.cc.isClang {
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types";
|
|
|
|
};
|
|
|
|
|
2022-01-25 07:34:00 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/flxzt/rnote";
|
2022-11-27 05:34:02 +00:00
|
|
|
changelog = "https://github.com/flxzt/rnote/releases/tag/${src.rev}";
|
2022-01-25 07:34:00 +00:00
|
|
|
description = "Simple drawing application to create handwritten notes";
|
2023-03-16 18:16:01 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-11-15 18:56:18 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
dotlambda
|
|
|
|
gepbird
|
|
|
|
yrd
|
|
|
|
];
|
2023-03-16 19:13:31 +00:00
|
|
|
platforms = platforms.unix;
|
2022-01-25 07:34:00 +00:00
|
|
|
};
|
|
|
|
}
|