nixpkgs/pkgs/desktops/lxqt/lxqt-themes/default.nix
worldofpeace 3167eb3780 lxqt: use qt5's mkDerivation
This should also ensure that the applications get wrapped
appropriately.
2019-08-19 21:22:18 -04:00

34 lines
888 B
Nix

{ lib, mkDerivation, fetchFromGitHub, cmake, lxqt-build-tools }:
mkDerivation rec {
pname = "lxqt-themes";
version = "0.14.0";
src = fetchFromGitHub {
owner = "lxqt";
repo = pname;
rev = version;
sha256 = "09dkcgnf3lmfly8v90p6wjlj5rin83pbailvvpx2jr8a48a8zb9f";
};
nativeBuildInputs = [
cmake
lxqt-build-tools
];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace "DESTINATION \"\''${LXQT_GRAPHICS_DIR}" "DESTINATION \"share/lxqt/graphics"
substituteInPlace themes/CMakeLists.txt \
--replace "DESTINATION \"\''${LXQT_SHARE_DIR}" "DESTINATION \"share/lxqt"
'';
meta = with lib; {
description = "Themes, graphics and icons for LXQt";
homepage = https://github.com/lxqt/lxqt-themes;
license = licenses.lgpl21;
platforms = with platforms; unix;
maintainers = with maintainers; [ romildo ];
};
}