nixpkgs/pkgs/desktops/lxqt/screengrab/default.nix
José Romildo Malaquias a61bd1e42d lxqt: restrict to linux platform
libqtxdg fails to build on darwin.

LXQt is a DE for linux so assume darwin is not supported.

The platform for some packages that may be useful outside of
LXQt (like pcmanfm-qt, lximage-qt and others) and do not depend on
libqtxdg are not being changed.
2019-11-02 13:36:21 -07:00

38 lines
897 B
Nix

{ lib, mkDerivation, fetchFromGitHub, cmake, pkgconfig, qtbase, qttools, qtx11extras, qtsvg, kwindowsystem, libqtxdg, xorg, autoPatchelfHook }:
mkDerivation rec {
pname = "screengrab";
version = "1.101";
src = fetchFromGitHub {
owner = "lxqt";
repo = pname;
rev = version;
sha256 = "111gnkhp77qkch7xqr7k3h8zrg4871gapyd4vvlpaj0gjhirjg6h";
};
nativeBuildInputs = [
cmake
pkgconfig
autoPatchelfHook # fix libuploader.so and libextedit.so not found
];
buildInputs = [
qtbase
qttools
qtx11extras
qtsvg
kwindowsystem
libqtxdg
xorg.libpthreadstubs
xorg.libXdmcp
];
meta = with lib; {
description = "Crossplatform tool for fast making screenshots";
homepage = https://github.com/lxqt/screengrab;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}