nixpkgs-suyu/pkgs/applications/misc/minder/default.nix

81 lines
1.3 KiB
Nix
Raw Normal View History

2021-08-26 14:20:08 +02:00
{ lib
, stdenv
, fetchFromGitHub
, desktop-file-utils
, meson
, ninja
, pkg-config
, python3
, shared-mime-info
, vala
, wrapGAppsHook
, cairo
, discount
, glib
, gtk3
, gtksourceview4
2019-09-14 05:49:03 +02:00
, hicolor-icon-theme # for setup-hook
2021-08-26 14:20:08 +02:00
, libarchive
, libgee
, libhandy
, libxml2
, pantheon
2019-06-05 02:03:39 +02:00
}:
stdenv.mkDerivation rec {
pname = "minder";
2021-08-26 14:20:08 +02:00
version = "1.13.1";
2019-06-05 02:03:39 +02:00
src = fetchFromGitHub {
owner = "phase1geo";
repo = pname;
rev = version;
2021-08-26 14:20:08 +02:00
sha256 = "07mq595c1vxwsnwkr2zdci0r06yhs75ph2db09mc63k5fjvi8rya";
2019-06-05 02:03:39 +02:00
};
2021-08-26 14:20:08 +02:00
nativeBuildInputs = [
desktop-file-utils
meson
ninja
pkg-config
python3
shared-mime-info
vala
wrapGAppsHook
];
buildInputs = [
cairo
discount
glib
gtk3
gtksourceview4
hicolor-icon-theme
libarchive
libgee
libhandy
libxml2
pantheon.granite
];
2019-06-05 02:03:39 +02:00
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
2019-09-14 05:49:03 +02:00
postFixup = ''
for x in $out/bin/*; do
ln -vrs $x "$out/bin/''${x##*.}"
done
'';
meta = with lib; {
2021-08-26 14:20:08 +02:00
description = "Mind-mapping application for elementary OS";
2019-06-05 02:03:39 +02:00
homepage = "https://github.com/phase1geo/Minder";
license = licenses.gpl3Plus;
platforms = platforms.linux;
2021-08-26 14:20:08 +02:00
maintainers = with maintainers; [ dtzWill ] ++ teams.pantheon.members;
mainProgram = "com.github.phase1geo.minder";
2019-06-05 02:03:39 +02:00
};
}