depot/third_party/nixpkgs/pkgs/applications/graphics/rnote/default.nix
Default email d56f44df06 Project import generated by Copybara.
GitOrigin-RevId: bc4b9eef3ce3d5a90d8693e8367c9cbfc9fc1e13
2022-04-03 20:54:34 +02:00

78 lines
1.6 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, appstream-glib
, 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";
version = "0.4.0";
src = fetchFromGitHub {
owner = "flxzt";
repo = "rnote";
rev = "v${version}";
sha256 = "sha256-J7IW329rWFEoB+44762DAkWA8Hq4IVmXgc+QoDQaxV0=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-elXaikB/RemMxA4OXyZNQOgP1alImQMJHng5oX2j480=";
};
nativeBuildInputs = [
appstream-glib # For appstream-util
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
];
buildInputs = [
gio-sharp
glib
gstreamer
gtk4
libadwaita
libxml2
poppler
];
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;
};
}