2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-08-20 17:08:02 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, gtkmm3
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, nlohmann_json
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-08-20 17:08:02 +00:00
|
|
|
, swaylock
|
|
|
|
, makeWrapper
|
2021-08-05 21:33:18 +00:00
|
|
|
, gtk-layer-shell
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nwg-launchers";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.7.1.1";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nwg-piotr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-+waoJHU/QrVH7o9qfwdvFTFJzTGLcV9CeYPn3XHEAkM=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-08-20 17:08:02 +00:00
|
|
|
cmake
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtkmm3
|
|
|
|
nlohmann_json
|
2021-08-05 21:33:18 +00:00
|
|
|
gtk-layer-shell
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/nwgbar \
|
|
|
|
--prefix PATH : "${swaylock}/bin"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "GTK-based launchers: application grid, button bar, dmenu for sway and other window managers";
|
|
|
|
homepage = "https://github.com/nwg-piotr/nwg-launchers";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|