mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 00:54:46 +00:00
50 lines
923 B
Nix
50 lines
923 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, gtkmm3
|
|
, meson
|
|
, ninja
|
|
, nlohmann_json
|
|
, pkg-config
|
|
, swaylock
|
|
, makeWrapper
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nwg-launchers";
|
|
version = "0.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nwg-piotr";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-vuvYL9N9xdg27uhiTe2OqxZ3/n/9EjlqPxtNMXpqpE8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
cmake
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
gtkmm3
|
|
nlohmann_json
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/nwgbar \
|
|
--prefix PATH : "${swaylock}/bin"
|
|
'';
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|