2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2018-02-09 12:30:09 +01:00
|
|
|
, fetchFromGitHub
|
2020-07-29 18:33:39 +02:00
|
|
|
, nix-update-script
|
2019-10-14 22:33:03 +02:00
|
|
|
, fetchpatch
|
2019-03-05 22:57:51 +01:00
|
|
|
, cmake
|
2019-05-22 13:03:39 +02:00
|
|
|
, gdk-pixbuf
|
2019-03-05 22:57:51 +01:00
|
|
|
, gtk3
|
2019-10-10 04:47:37 +02:00
|
|
|
, vala
|
2018-02-09 12:30:09 +01:00
|
|
|
, gettext
|
2019-03-05 22:57:51 +01:00
|
|
|
, ninja
|
|
|
|
, pantheon
|
2021-01-17 03:09:27 +01:00
|
|
|
, pkg-config
|
2018-02-25 03:23:58 +01:00
|
|
|
, json-glib
|
2018-02-09 12:30:09 +01:00
|
|
|
, libgudev
|
|
|
|
, libevdev
|
2019-03-05 22:57:51 +01:00
|
|
|
, libgee
|
2018-10-31 23:25:22 +01:00
|
|
|
, libsoup
|
2019-10-10 04:47:37 +02:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2018-02-09 12:30:09 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-05 22:57:51 +01:00
|
|
|
pname = "spice-up";
|
2019-06-03 07:00:46 +02:00
|
|
|
version = "1.8.2";
|
2018-02-09 12:30:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Philip-Scott";
|
|
|
|
repo = "Spice-up";
|
|
|
|
rev = version;
|
2019-06-03 07:00:46 +02:00
|
|
|
sha256 = "1pix911l4ddn50026a5sbpqfzba6fmw40m1yzbknmkgd2ny28f0m";
|
2018-02-09 12:30:09 +01:00
|
|
|
};
|
2018-10-31 23:25:22 +01:00
|
|
|
|
2019-03-05 22:57:51 +01:00
|
|
|
USER = "pbuilder";
|
2018-02-09 12:30:09 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
gettext
|
2018-08-20 22:31:18 +02:00
|
|
|
ninja
|
2021-01-17 03:09:27 +01:00
|
|
|
pkg-config
|
2019-10-10 04:47:37 +02:00
|
|
|
vala
|
2018-08-20 22:31:18 +02:00
|
|
|
wrapGAppsHook
|
2018-02-09 12:30:09 +01:00
|
|
|
];
|
2019-10-14 22:33:03 +02:00
|
|
|
|
2018-02-09 12:30:09 +01:00
|
|
|
buildInputs = [
|
2018-08-20 22:31:18 +02:00
|
|
|
pantheon.elementary-icon-theme
|
|
|
|
pantheon.granite
|
2019-05-22 13:03:39 +02:00
|
|
|
gdk-pixbuf
|
2018-10-31 23:25:22 +01:00
|
|
|
gtk3
|
2018-02-25 03:23:58 +01:00
|
|
|
json-glib
|
2018-02-09 12:30:09 +01:00
|
|
|
libevdev
|
2019-03-05 22:57:51 +01:00
|
|
|
libgee
|
2018-10-31 23:25:22 +01:00
|
|
|
libgudev
|
|
|
|
libsoup
|
2018-02-09 12:30:09 +01:00
|
|
|
];
|
|
|
|
|
2019-10-14 22:33:03 +02:00
|
|
|
patches = [
|
|
|
|
# Fix build with Vala 0.46
|
|
|
|
# https://github.com/Philip-Scott/Spice-up/pull/288
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/Philip-Scott/Spice-up/pull/288.patch";
|
|
|
|
sha256 = "0kyfd8v2sk4cvcq1j8ysp64snfjhnpr3iz7l04lx7if7h372xj39";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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-03-05 22:57:51 +01:00
|
|
|
description = "Create simple and beautiful presentations";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/Philip-Scott/Spice-up";
|
2021-09-18 17:00:51 +02:00
|
|
|
maintainers = with maintainers; [ samdroid-apps xiorcale ] ++ teams.pantheon.members;
|
2018-02-09 12:30:09 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
# The COPYING file has GPLv3; some files have GPLv2+ and some have GPLv3+
|
|
|
|
license = licenses.gpl3Plus;
|
2021-11-03 11:27:38 +01:00
|
|
|
mainProgram = "com.github.philip-scott.spice-up";
|
2018-02-09 12:30:09 +01:00
|
|
|
};
|
|
|
|
}
|