3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/nwg-launchers/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
961 B
Nix
Raw Normal View History

{ lib, stdenv
2020-07-15 16:45:26 +01:00
, fetchFromGitHub
, cmake
, gtkmm3
, meson
, ninja
, nlohmann_json
, pkg-config
2020-07-15 16:45:26 +01:00
, swaylock
, makeWrapper
2021-08-01 02:02:47 +01:00
, gtk-layer-shell
2020-07-15 16:45:26 +01:00
}:
stdenv.mkDerivation rec {
pname = "nwg-launchers";
2021-11-03 17:05:12 +00:00
version = "0.6.3";
2020-07-15 16:45:26 +01:00
src = fetchFromGitHub {
owner = "nwg-piotr";
repo = pname;
rev = "v${version}";
2021-11-03 17:05:12 +00:00
sha256 = "sha256-QWDYy0TBxoYxfRAOtAEVM8wsPUi2SnzMXsu38guAURU=";
2020-07-15 16:45:26 +01:00
};
nativeBuildInputs = [
meson
ninja
pkg-config
2020-07-15 16:45:26 +01:00
cmake
makeWrapper
];
buildInputs = [
gtkmm3
nlohmann_json
2021-08-01 02:02:47 +01:00
gtk-layer-shell
2020-07-15 16:45:26 +01:00
];
postInstall = ''
wrapProgram $out/bin/nwgbar \
--prefix PATH : "${swaylock}/bin"
'';
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 ];
};
}