Files
nixpkgs/pkgs/development/libraries/qwt/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

53 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchurl,
qtbase,
qtsvg,
qttools,
qmake,
fixDarwinDylibNames,
}:
stdenv.mkDerivation rec {
pname = "qwt";
version = "6.3.0";
outputs = [
"out"
"dev"
];
src = fetchurl {
url = "mirror://sourceforge/qwt/qwt-${version}.tar.bz2";
sha256 = "sha256-3LCFiWwoquxVGMvAjA7itOYK2nrJKdgmOfYYmFGmEpo=";
};
propagatedBuildInputs = [
qtbase
qtsvg
qttools
];
nativeBuildInputs = [ qmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
postPatch = ''
sed -e "s|QWT_INSTALL_PREFIX.*=.*|QWT_INSTALL_PREFIX = $out|g" -i qwtconfig.pri
'';
qmakeFlags = [ "-after doc.path=$out/share/doc/qwt-${version}" ];
dontWrapQtApps = true;
meta = {
description = "Qt widgets for technical applications";
homepage = "http://qwt.sourceforge.net/";
# LGPL 2.1 plus a few exceptions (more liberal)
license = with lib.licenses; [
lgpl21Only
qwtException
];
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.bjornfor ];
};
}