mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-25 18:19:10 +00:00
kiwmi: init at 2022-09-26
This commit is contained in:
parent
f5309661c2
commit
6a3b9ce0e1
@ -41,6 +41,7 @@ let
|
||||
gnome-info-collect = callPackage ./gnome-info-collect { };
|
||||
hush-shell = callPackage ./hush-shell.nix { };
|
||||
ictree = callPackage ./ictree.nix { };
|
||||
kiwmi = callPackage ./kiwmi { };
|
||||
libadwaita-latest = libadwaita.overrideAttrs (super: self: {
|
||||
version = "1.2.0";
|
||||
src = fetchFromGitLab {
|
||||
|
68
pkgs/kiwmi/default.nix
Normal file
68
pkgs/kiwmi/default.nix
Normal file
@ -0,0 +1,68 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, makeBinaryWrapper
|
||||
, lua
|
||||
, pixman
|
||||
, wlroots
|
||||
, wayland
|
||||
, wayland-protocols
|
||||
, wayland-scanner
|
||||
, libxkbcommon
|
||||
, udev
|
||||
, git
|
||||
, extraOptions ? [ ]
|
||||
}:
|
||||
|
||||
let
|
||||
rev = "17814972abe6a8811a586fa87c99a2b16a86075f";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "kiwmi";
|
||||
version = "2022-09-26";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "buffet";
|
||||
repo = pname;
|
||||
sha256 = "sha256-n9PA6cyEjSlnDcRrqIkO83UaCE/hovbi/oZon1B+nuw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
makeBinaryWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
git
|
||||
libxkbcommon
|
||||
lua
|
||||
pixman
|
||||
udev
|
||||
wayland
|
||||
wayland-protocols
|
||||
wayland-scanner
|
||||
wlroots
|
||||
];
|
||||
|
||||
mesonFlags = [ "-Dkiwmi-version=${version}-${lib.strings.substring 0 6 rev}" ];
|
||||
|
||||
passthru.providedSessions = [ "kiwmi" ];
|
||||
|
||||
postInstall = lib.optionalString (lib.length extraOptions >= 1) ''
|
||||
wrapProgram $out/bin/kiwmi \
|
||||
${lib.concatMapStrings (flag: " --add-flags ${lib.escapeShellArg flag}") extraOptions}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/buffet/kiwmi";
|
||||
description = "Fully programmable Wayland compositor";
|
||||
license = licenses.mpl20;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user