2019-07-05 16:42:08 +01:00
|
|
|
{ stdenv, fetchurl, qtbase, qtsvg, qmake, pkgconfig, boost, wirelesstools, iw, qwt, wrapQtAppsHook }:
|
2014-09-08 21:04:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "linssid";
|
2014-09-08 21:04:22 +01:00
|
|
|
version = "2.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/linssid/LinSSID_${version}/linssid_${version}.orig.tar.gz";
|
|
|
|
sha256 = "13d35rlcjncd8lx3khkgn9x8is2xjd5fp6ns5xsn3w6l4xj9b4gl";
|
|
|
|
};
|
|
|
|
|
2019-07-05 16:42:08 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig qmake wrapQtAppsHook ];
|
2018-07-17 21:11:16 +01:00
|
|
|
buildInputs = [ qtbase qtsvg boost qwt ];
|
2015-09-19 17:12:50 +01:00
|
|
|
|
|
|
|
patches = [ ./0001-unbundled-qwt.patch ];
|
2014-09-08 21:04:22 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
2019-03-15 15:28:02 +00:00
|
|
|
sed -e "s|/usr/include/qt5.*$|& ${qwt}/include|" -i linssid-app/linssid-app.pro
|
2014-09-08 21:04:22 +01:00
|
|
|
sed -e "s|/usr/include/|/nonexistent/|g" -i linssid-app/*.pro
|
|
|
|
sed -e 's|^LIBS .*= .*libboost_regex.a|LIBS += -lboost_regex|' \
|
|
|
|
-e "s|/usr|$out|g" \
|
|
|
|
-i linssid-app/linssid-app.pro linssid-app/linssid.desktop
|
|
|
|
sed -e "s|\.\./\.\./\.\./\.\./usr|$out|g" -i linssid-app/*.ui
|
|
|
|
|
2015-09-19 17:12:50 +01:00
|
|
|
# Remove bundled qwt
|
|
|
|
rm -fr qwt-lib
|
2014-09-08 21:04:22 +01:00
|
|
|
'';
|
|
|
|
|
2019-07-05 16:42:08 +01:00
|
|
|
qtWrapperArgs =
|
|
|
|
[ ''--prefix PATH : ${stdenv.lib.makeBinPath [ wirelesstools iw ]}'' ];
|
2019-03-15 15:28:02 +00:00
|
|
|
|
2014-09-08 21:04:22 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Graphical wireless scanning for Linux";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/linssid/";
|
2014-09-08 21:04:22 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|