diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-09-08 22:04:22 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-09-09 19:42:49 +0200 |
commit | c888b97e19185933b3024f4e3de6cb78fed4911a (patch) | |
tree | 06b0dba97b4734300f8a6c0fd4c5bd439205286b /pkgs/applications/networking/linssid/default.nix | |
parent | bf009f87a944a7664a8af340caa5444537400fc1 (diff) |
linssid: new package
LinSSID is a graphical wireless scanning application for Linux.
http://sourceforge.net/projects/linssid/
Diffstat (limited to 'pkgs/applications/networking/linssid/default.nix')
-rw-r--r-- | pkgs/applications/networking/linssid/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/networking/linssid/default.nix b/pkgs/applications/networking/linssid/default.nix new file mode 100644 index 000000000000..2b4c5f564bec --- /dev/null +++ b/pkgs/applications/networking/linssid/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchurl, qt5, pkgconfig, boost, wirelesstools, iw }: + +stdenv.mkDerivation rec { + name = "linssid-${version}"; + version = "2.7"; + + src = fetchurl { + url = "mirror://sourceforge/project/linssid/LinSSID_${version}/linssid_${version}.orig.tar.gz"; + sha256 = "13d35rlcjncd8lx3khkgn9x8is2xjd5fp6ns5xsn3w6l4xj9b4gl"; + }; + + buildInputs = [ qt5 pkgconfig boost ]; + + postPatch = '' + 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 + + sed -e "s|iwlist|${wirelesstools}/sbin/iwlist|g" -i linssid-app/Getter.cpp + sed -e "s|iw dev|${iw}/sbin/iw dev|g" -i linssid-app/MainForm.cpp + ''; + + configurePhase = "qmake linssid.pro"; + + meta = with stdenv.lib; { + description = "Graphical wireless scanning for Linux"; + homepage = http://sourceforge.net/projects/linssid/; + license = licenses.gpl3; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; +} |