forked from mirrors/nixpkgs
Merge pull request #156699 from yrd/rnote
This commit is contained in:
commit
8bdbfe935b
76
pkgs/applications/graphics/rnote/default.nix
Normal file
76
pkgs/applications/graphics/rnote/default.nix
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, 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.3.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "flxzt";
|
||||||
|
repo = "rnote";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "5g5SQJc5aopYxtHNP5T85TtcazovrveUCnMhJ90p2t4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||||
|
inherit src;
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
hash = "sha256-vnLesWXdqNzlWNQsUVy03kfmcDNazQ1BbizQDoG1kgM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -9389,6 +9389,10 @@ with pkgs;
|
||||||
|
|
||||||
rnnoise-plugin = callPackage ../development/libraries/rnnoise-plugin {};
|
rnnoise-plugin = callPackage ../development/libraries/rnnoise-plugin {};
|
||||||
|
|
||||||
|
rnote = callPackage ../applications/graphics/rnote {
|
||||||
|
inherit (gst_all_1) gstreamer;
|
||||||
|
};
|
||||||
|
|
||||||
rnp = callPackage ../tools/security/rnp { };
|
rnp = callPackage ../tools/security/rnp { };
|
||||||
|
|
||||||
rnv = callPackage ../tools/text/xml/rnv { };
|
rnv = callPackage ../tools/text/xml/rnv { };
|
||||||
|
|
Loading…
Reference in a new issue