2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-07-15 16:45:26 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, gtkmm3
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, nlohmann_json
|
|
|
|
, pkgconfig
|
|
|
|
, swaylock
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nwg-launchers";
|
2020-11-08 05:32:39 +00:00
|
|
|
version = "0.4.2";
|
2020-07-15 16:45:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nwg-piotr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-08 05:32:39 +00:00
|
|
|
sha256 = "0flp7mwj1pgcwx3k9pzc8pmqlkhbddj0maimdnvlazk87kzxpfd0";
|
2020-07-15 16:45:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
cmake
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtkmm3
|
|
|
|
nlohmann_json
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/nwgbar \
|
|
|
|
--prefix PATH : "${swaylock}/bin"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-07-15 16:45:26 +01: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;
|
|
|
|
maintainers = with maintainers; [ bbigras ];
|
|
|
|
};
|
|
|
|
}
|