mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
78 lines
1.4 KiB
Nix
78 lines
1.4 KiB
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitLab
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, gobject-introspection
|
|
, wrapGAppsHook4
|
|
, appstream-glib
|
|
, desktop-file-utils
|
|
, glib
|
|
, gtk4
|
|
, librsvg
|
|
, libsecret
|
|
, libadwaita
|
|
, gtksourceview5
|
|
, webkitgtk_6_0
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "iotas";
|
|
version = "0.2.10";
|
|
pyproject = false;
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "World";
|
|
repo = "iotas";
|
|
rev = version;
|
|
hash = "sha256-aITt+TJb/LrVOyb/mAC7U6/NJ4stHD76jjBFC7Pt7fU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gobject-introspection
|
|
wrapGAppsHook4
|
|
appstream-glib
|
|
desktop-file-utils
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk4
|
|
librsvg
|
|
libsecret
|
|
libadwaita
|
|
gtksourceview5
|
|
webkitgtk_6_0
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pygobject3
|
|
pygtkspellcheck
|
|
requests
|
|
markdown-it-py
|
|
linkify-it-py
|
|
mdit-py-plugins
|
|
pypandoc
|
|
];
|
|
|
|
# prevent double wrapping
|
|
dontWrapGApps = true;
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Simple note taking with mobile-first design and Nextcloud sync";
|
|
homepage = "https://gitlab.gnome.org/World/iotas";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
mainProgram = "iotas";
|
|
maintainers = with maintainers; [ zendo ];
|
|
};
|
|
}
|