depot/third_party/nixpkgs/pkgs/applications/misc/nwg-launchers/default.nix
Default email bb5b50588c Project import generated by Copybara.
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
2021-02-19 20:06:45 +01:00

49 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.4";
src = fetchFromGitHub {
owner = "nwg-piotr";
repo = pname;
rev = "v${version}";
sha256 = "sha256-krhFtFQZSwfKPHmVxPGNySPL2Y9+kA0fxjZ/D+mNks4=";
};
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 ];
};
}