2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-10-08 19:05:08 +02:00
|
|
|
, fetchFromGitHub
|
2020-07-29 18:33:39 +02:00
|
|
|
, nix-update-script
|
2019-10-08 19:05:08 +02:00
|
|
|
, fetchpatch
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 03:09:27 +01:00
|
|
|
, pkg-config
|
2019-10-08 19:05:08 +02:00
|
|
|
, pantheon
|
|
|
|
, python3
|
|
|
|
, vala
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, libgee
|
|
|
|
, sqlite
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "envelope";
|
|
|
|
version = "0.0.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cjfloss";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "111lq1gijcm7qwpac09q11ymwiw2x3m12a28ki52f28fb1amvffc";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
vala
|
2021-01-17 03:09:27 +01:00
|
|
|
pkg-config
|
2019-10-08 19:05:08 +02:00
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libgee
|
|
|
|
pantheon.granite
|
|
|
|
sqlite
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fix AppData Validation.
|
|
|
|
# https://github.com/cjfloss/envelope/pull/59
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/cjfloss/envelope/commit/b6a28eced89b8f944479fcc695aebfb9aae0c691.patch";
|
|
|
|
sha256 = "11znc8z52kl893n3gmmdpnp3y4vpzmb263m5gp0qxbl3xykq2wzr";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x data/post_install.py
|
|
|
|
patchShebangs data/post_install.py
|
|
|
|
'';
|
|
|
|
|
2019-12-23 00:19:30 +01:00
|
|
|
passthru = {
|
2020-07-29 18:33:39 +02:00
|
|
|
updateScript = nix-update-script {
|
2019-12-23 00:19:30 +01:00
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-10-08 19:05:08 +02:00
|
|
|
description = "Personal finance manager for elementary OS";
|
|
|
|
homepage = "https://github.com/cjfloss/envelope";
|
2020-05-08 09:08:53 +02:00
|
|
|
maintainers = with maintainers; [ xiorcale ] ++ pantheon.maintainers;
|
2019-10-08 19:05:08 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
};
|
|
|
|
}
|