https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
58 lines
971 B
Nix
58 lines
971 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, substituteAll
|
|
, pkg-config
|
|
, meson
|
|
, ninja
|
|
, vala
|
|
, gtk3
|
|
, granite
|
|
, networkmanager
|
|
, libnma
|
|
, wingpanel
|
|
, libgee
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wingpanel-indicator-network";
|
|
version = "2.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-4Fg8/Gm9mUqaL3wEc8h+/pMvOfD75ILjo7LhLz6LQmo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
];
|
|
|
|
buildInputs = [
|
|
granite
|
|
gtk3
|
|
libgee
|
|
networkmanager
|
|
libnma
|
|
wingpanel
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
attrPath = "pantheon.${pname}";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Network Indicator for Wingpanel";
|
|
homepage = "https://github.com/elementary/wingpanel-indicator-network";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.pantheon.members;
|
|
};
|
|
}
|