somebar: init at 1.0.0 (#183164)
This commit is contained in:
parent
093ecc5f3e
commit
d31b00dea1
2 changed files with 45 additions and 0 deletions
43
pkgs/applications/misc/somebar/default.nix
Normal file
43
pkgs/applications/misc/somebar/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromSourcehut
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, wayland
|
||||
, pango
|
||||
, wayland-protocols
|
||||
, conf ? null
|
||||
}:
|
||||
|
||||
let
|
||||
# There is a configuration in src/config.def.hpp, which we use by default
|
||||
configFile = if lib.isDerivation conf || builtins.isPath conf then conf else "src/config.def.hpp";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "somebar";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~raphi";
|
||||
repo = "somebar";
|
||||
rev = "${version}";
|
||||
sha256 = "sha256-snCW7dC8JI/pg1+HLjX0JXsTzwa3akA6rLcSNgKLF0c=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkg-config ];
|
||||
buildInputs = [ pango wayland wayland-protocols ];
|
||||
|
||||
prePatch = ''
|
||||
cp ${configFile} src/config.hpp
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://git.sr.ht/~raphi/somebar";
|
||||
description = "dwm-like bar for dwl";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ magnouvean ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -10864,6 +10864,8 @@ with pkgs;
|
|||
|
||||
sourceHighlight = callPackage ../tools/text/source-highlight { };
|
||||
|
||||
somebar = callPackage ../applications/misc/somebar { };
|
||||
|
||||
spacebar = callPackage ../os-specific/darwin/spacebar {
|
||||
inherit (darwin.apple_sdk.frameworks)
|
||||
Carbon Cocoa ScriptingBridge SkyLight;
|
||||
|
|
Loading…
Reference in a new issue