2022-02-20 05:27:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-05-18 14:49:53 +00:00
|
|
|
, alsa-lib
|
2022-04-03 18:54:34 +00:00
|
|
|
, appstream-glib
|
2023-05-24 13:37:59 +00:00
|
|
|
, cargo
|
2022-11-02 22:02:43 +00:00
|
|
|
, cmake
|
2022-02-20 05:27:41 +00:00
|
|
|
, desktop-file-utils
|
2023-11-16 04:20:00 +00:00
|
|
|
, dos2unix
|
2022-02-20 05:27:41 +00:00
|
|
|
, glib
|
|
|
|
, gstreamer
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, libxml2
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, poppler
|
|
|
|
, python3
|
|
|
|
, rustPlatform
|
2023-05-24 13:37:59 +00:00
|
|
|
, rustc
|
2022-02-20 05:27:41 +00:00
|
|
|
, shared-mime-info
|
|
|
|
, wrapGAppsHook4
|
2023-03-24 00:07:29 +00:00
|
|
|
, AudioUnit
|
2022-02-20 05:27:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rnote";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.8.2";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flxzt";
|
|
|
|
repo = "rnote";
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-cIy2+Q6HSLwbT0XXDK88Z0mdu46vWSZNTVl8MphXhw0=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2023-11-16 04:20:00 +00:00
|
|
|
"ink-stroke-modeler-rs-0.1.0" = "sha256-WfZwezohm8+ZXiKZlssTX+b/Izk1M4jFwxQejeTfc6M=";
|
|
|
|
"librsvg-2.57.0-beta.2" = "sha256-8k5KWhm9PIpdmf2DByTyrqX5mGAa+a7ZDGmVO2ERhTU=";
|
|
|
|
"piet-0.6.2" = "sha256-WrQok0T7uVQEp8SvNWlgqwQHfS7q0510bnP1ecr+s1Q=";
|
2023-03-27 19:17:25 +00:00
|
|
|
};
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-04-03 18:54:34 +00:00
|
|
|
appstream-glib # For appstream-util
|
2022-11-02 22:02:43 +00:00
|
|
|
cmake
|
2022-02-20 05:27:41 +00:00
|
|
|
desktop-file-utils # For update-desktop-database
|
2023-11-16 04:20:00 +00:00
|
|
|
dos2unix
|
2022-02-20 05:27:41 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3 # For the postinstall script
|
2023-03-24 00:07:29 +00:00
|
|
|
rustPlatform.bindgenHook
|
2022-02-20 05:27:41 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
2023-05-24 13:37:59 +00:00
|
|
|
cargo
|
|
|
|
rustc
|
2022-02-20 05:27:41 +00:00
|
|
|
shared-mime-info # For update-mime-database
|
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
mesonFlags = [
|
|
|
|
(lib.mesonBool "cli" true)
|
|
|
|
];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gstreamer
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
libxml2
|
|
|
|
poppler
|
2023-03-24 00:07:29 +00:00
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
alsa-lib
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
AudioUnit
|
2022-02-20 05:27:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2023-11-16 04:20:00 +00:00
|
|
|
dos2unix build-aux/*.py # FIXME remove once updated to 0.9.0
|
|
|
|
chmod +x build-aux/*.py
|
|
|
|
patchShebangs build-aux
|
2022-02-20 05:27:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/flxzt/rnote";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/flxzt/rnote/releases/tag/${src.rev}";
|
2022-02-20 05:27:41 +00:00
|
|
|
description = "Simple drawing application to create handwritten notes";
|
2023-03-24 00:07:29 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda yrd ];
|
2023-03-24 00:07:29 +00:00
|
|
|
platforms = platforms.unix;
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
}
|