3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/pantheon/apps/elementary-camera/default.nix

86 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
2021-01-17 02:21:50 +00:00
, pkg-config
, meson
, ninja
, vala
, desktop-file-utils
, python3
, gettext
, libxml2
, gtk3
, granite
, libgee
, libhandy
, gst_all_1
, libcanberra
, clutter-gtk
, clutter-gst
, elementary-icon-theme
, appstream
, wrapGAppsHook
}:
2018-08-20 21:31:18 +01:00
stdenv.mkDerivation rec {
pname = "elementary-camera";
version = "6.0.0";
2018-08-20 21:31:18 +01:00
repoName = "camera";
2018-08-20 21:31:18 +01:00
src = fetchFromGitHub {
owner = "elementary";
repo = repoName;
2018-08-20 21:31:18 +01:00
rev = version;
sha256 = "1z5c6pkc7psglxwzby5idsdxvplpi28ckjxrwdngnr22knfdcgag";
2018-08-20 21:31:18 +01:00
};
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
2018-08-20 21:31:18 +01:00
};
};
nativeBuildInputs = [
appstream
desktop-file-utils
gettext
libxml2
meson
ninja
2021-01-17 02:21:50 +00:00
pkg-config
2018-08-20 21:31:18 +01:00
python3
vala
wrapGAppsHook
];
buildInputs = [
clutter-gst
clutter-gtk
elementary-icon-theme
granite
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-base
(gst_all_1.gst-plugins-good.override { gtkSupport = true; })
2018-08-20 21:31:18 +01:00
gst_all_1.gstreamer
gtk3
libcanberra
libgee
libhandy
2018-08-20 21:31:18 +01:00
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
meta = with lib; {
2018-08-20 21:31:18 +01:00
description = "Camera app designed for elementary OS";
homepage = "https://github.com/elementary/camera";
license = licenses.gpl3Plus;
2018-08-20 21:31:18 +01:00
platforms = platforms.linux;
maintainers = pantheon.maintainers;
};
}