mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +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.
74 lines
1.2 KiB
Nix
74 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, desktop-file-utils
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, python3
|
|
, vala
|
|
, wrapGAppsHook3
|
|
, discount
|
|
, glib
|
|
, gtk3
|
|
, gtksourceview4
|
|
, gtkspell3
|
|
, libgee
|
|
, pantheon
|
|
, sqlite
|
|
, webkitgtk_4_0
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "notes-up";
|
|
version = "2.0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Philip-Scott";
|
|
repo = "Notes-up";
|
|
rev = version;
|
|
sha256 = "sha256-t9BCtdWd2JLrKTcmri1Lgl5RLBYD2xWCtMxoVXz0XPk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
vala
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
discount
|
|
glib
|
|
gtk3
|
|
gtksourceview4
|
|
gtkspell3
|
|
libgee
|
|
pantheon.granite
|
|
sqlite
|
|
webkitgtk_4_0
|
|
];
|
|
|
|
postPatch = ''
|
|
chmod +x meson/post_install.py
|
|
patchShebangs meson/post_install.py
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Markdown notes editor and manager designed for elementary OS";
|
|
homepage = "https://github.com/Philip-Scott/Notes-up";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ ] ++ teams.pantheon.members;
|
|
platforms = platforms.linux;
|
|
mainProgram = "com.github.philip_scott.notes-up";
|
|
};
|
|
}
|