depot/third_party/nixpkgs/pkgs/desktops/deepin/apps/deepin-picker/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

58 lines
1.2 KiB
Nix

{ stdenv
, lib
, fetchFromGitHub
, qmake
, qttools
, pkg-config
, wrapQtAppsHook
, dtkwidget
, qtsvg
, xorg
, qtbase
}:
stdenv.mkDerivation rec {
pname = "deepin-picker";
version = "5.0.28";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "sha256-b463PqrCpt/DQqint5Xb0cRT66iHNPavj0lsTMv801k=";
};
nativeBuildInputs = [
qmake
qttools
pkg-config
wrapQtAppsHook
];
buildInputs = [
dtkwidget
qtsvg
xorg.libXtst
];
postPatch = ''
substituteInPlace com.deepin.Picker.service \
--replace "/usr/bin/deepin-picker" "$out/bin/deepin-picker"
'';
qmakeFlags = [
"BINDIR=${placeholder "out"}/bin"
"ICONDIR=${placeholder "out"}/share/icons/hicolor/scalable/apps"
"APPDIR=${placeholder "out"}/share/applications"
"DSRDIR=${placeholder "out"}/share/deepin-picker"
"DOCDIR=${placeholder "out"}/share/dman/deepin-picker"
];
meta = with lib; {
description = "Color picker application";
homepage = "https://github.com/linuxdeepin/deepin-picker";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}