mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
33 lines
783 B
Nix
33 lines
783 B
Nix
{ lib, mkDerivation, fetchpatch, qtbase, qmake, inkscape, imagemagick, wpa_supplicant }:
|
|
|
|
mkDerivation {
|
|
pname = "wpa_gui";
|
|
inherit (wpa_supplicant) version src;
|
|
|
|
buildInputs = [ qtbase ];
|
|
nativeBuildInputs = [ qmake inkscape imagemagick ];
|
|
|
|
postPatch = ''
|
|
cd wpa_supplicant/wpa_gui-qt4
|
|
'';
|
|
|
|
postBuild = ''
|
|
make -C icons
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir -pv $out/{bin,share/applications,share/icons}
|
|
cp -v wpa_gui $out/bin
|
|
cp -v wpa_gui.desktop $out/share/applications
|
|
cp -av icons/hicolor $out/share/icons
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Qt-based GUI for wpa_supplicant";
|
|
mainProgram = "wpa_gui";
|
|
homepage = "https://hostap.epitest.fi/wpa_supplicant/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|