mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 14:24:40 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
105 lines
1.7 KiB
Nix
105 lines
1.7 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, meson
|
|
, ninja
|
|
, exiv2
|
|
, libheif
|
|
, libjpeg
|
|
, libtiff
|
|
, gst_all_1
|
|
, libraw
|
|
, libsoup
|
|
, libsecret
|
|
, glib
|
|
, gtk3
|
|
, gsettings-desktop-schemas
|
|
, librsvg
|
|
, libwebp
|
|
, json-glib
|
|
, webkitgtk
|
|
, lcms2
|
|
, bison
|
|
, flex
|
|
, clutter-gtk
|
|
, wrapGAppsHook
|
|
, shared-mime-info
|
|
, python3
|
|
, desktop-file-utils
|
|
, itstool
|
|
, xapp
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pix";
|
|
version = "3.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-tRndJjUw/k5mJPFTBMfW88Mvp2wZtC3RUzyS8bBO1jc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
bison
|
|
desktop-file-utils
|
|
flex
|
|
itstool
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
clutter-gtk
|
|
exiv2
|
|
glib
|
|
gsettings-desktop-schemas
|
|
gst_all_1.gst-plugins-base
|
|
(gst_all_1.gst-plugins-good.override { gtkSupport = true; })
|
|
gst_all_1.gst-libav
|
|
gst_all_1.gst-plugins-bad
|
|
gst_all_1.gst-plugins-ugly
|
|
gtk3
|
|
json-glib
|
|
lcms2
|
|
libheif
|
|
libjpeg
|
|
libraw
|
|
librsvg
|
|
libsecret
|
|
libsoup
|
|
libtiff
|
|
libwebp
|
|
webkitgtk
|
|
xapp
|
|
];
|
|
|
|
postPatch = ''
|
|
chmod +x pix/make-pix-h.py
|
|
|
|
patchShebangs data/gschemas/make-enums.py \
|
|
pix/make-pix-h.py \
|
|
po/make-potfiles-in.py \
|
|
postinstall.py \
|
|
pix/make-authors-tab.py
|
|
'';
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A generic image viewer from Linux Mint";
|
|
mainProgram = "pix";
|
|
homepage = "https://github.com/linuxmint/pix";
|
|
license = licenses.gpl2Only;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.cinnamon.members;
|
|
};
|
|
}
|