Files
nixpkgs/pkgs/development/libraries/qtfeedback/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

58 lines
1003 B
Nix

{
lib,
mkDerivation,
fetchFromGitHub,
perl,
qmake,
qtdeclarative,
}:
mkDerivation {
pname = "qtfeedback";
version = "unstable-2018-09-03";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "qt";
repo = "qtfeedback";
rev = "a14bd0bb1373cde86e09e3619fb9dc70f34c71f2";
sha256 = "0kiiffvriagql1cark6g1qxy7l9c3q3s13cx3s2plbz19nlnikj7";
};
nativeBuildInputs = [
perl
qmake
];
buildInputs = [
qtdeclarative
];
qmakeFlags = [ "CONFIG+=git_build" ];
doCheck = true;
postFixup = ''
# Drop QMAKE_PRL_BUILD_DIR because it references the build dir
find "$out/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
'';
meta = {
description = "Qt Tactile Feedback";
homepage = "https://github.com/qt/qtfeedback";
license = with lib.licenses; [
lgpl3Only # or
gpl2Plus
];
maintainers = with lib.maintainers; [
dotlambda
OPNA2608
];
};
}