nixpkgs/pkgs/applications/misc/nwg-launchers/default.nix

50 lines
924 B
Nix
Raw Normal View History

2020-07-15 15:45:26 +00:00
{ stdenv
, fetchFromGitHub
, cmake
, gtkmm3
, meson
, ninja
, nlohmann_json
, pkgconfig
, swaylock
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "nwg-launchers";
version = "0.2.0";
src = fetchFromGitHub {
owner = "nwg-piotr";
repo = pname;
rev = "v${version}";
sha256 = "1mlym0mpg6njwgwniwlk95fk6wfwlzq8nwmkb5mkjlm2nqv5bdv1";
};
nativeBuildInputs = [
meson
ninja
pkgconfig
cmake
makeWrapper
];
buildInputs = [
gtkmm3
nlohmann_json
];
postInstall = ''
wrapProgram $out/bin/nwgbar \
--prefix PATH : "${swaylock}/bin"
'';
meta = with stdenv.lib; {
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 ];
};
}