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
|
2022-11-02 22:02:43 +00:00
|
|
|
, clang
|
|
|
|
, cmake
|
2022-02-20 05:27:41 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, gio-sharp
|
|
|
|
, glib
|
|
|
|
, gstreamer
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, libxml2
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, poppler
|
|
|
|
, python3
|
|
|
|
, rustPlatform
|
|
|
|
, shared-mime-info
|
|
|
|
, wrapGAppsHook4
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rnote";
|
2022-11-02 22:02:43 +00:00
|
|
|
version = "0.5.7";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flxzt";
|
|
|
|
repo = "rnote";
|
|
|
|
rev = "v${version}";
|
2022-05-18 14:49:53 +00:00
|
|
|
fetchSubmodules = true;
|
2022-11-02 22:02:43 +00:00
|
|
|
hash = "sha256-w4y+t8idcaNwvC2Wp9SRjcd4m23Zt+yHG2fjOA2rBU8=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2022-11-02 22:02:43 +00:00
|
|
|
hash = "sha256-Hybbbokru4vz5ly3oZuNGdBa+lYbhdYjESUpRxIUqJc=";
|
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
|
|
|
clang
|
|
|
|
cmake
|
2022-02-20 05:27:41 +00:00
|
|
|
desktop-file-utils # For update-desktop-database
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3 # For the postinstall script
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustPlatform.rust.cargo
|
|
|
|
rustPlatform.rust.rustc
|
|
|
|
shared-mime-info # For update-mime-database
|
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
buildInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
alsa-lib
|
2022-02-20 05:27:41 +00:00
|
|
|
gio-sharp
|
|
|
|
glib
|
|
|
|
gstreamer
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
libxml2
|
|
|
|
poppler
|
|
|
|
];
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
LIBCLANG_PATH = "${clang.cc.lib}/lib";
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
postPatch = ''
|
|
|
|
pushd build-aux
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
substituteInPlace meson_post_install.py --replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/flxzt/rnote";
|
|
|
|
description = "Simple drawing application to create handwritten notes";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ dotlambda yrd ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|