add kiwmi as git subtree and derivation to build it

phoen
Daniel Barlow 2022-04-26 15:52:14 +01:00
parent 77444ac47c
commit 74a1c01900
4 changed files with 75 additions and 0 deletions

3
Makefile Normal file
View File

@ -0,0 +1,3 @@
default:
install: default

1
build.nix Normal file
View File

@ -0,0 +1 @@
with import <nixpkgs> {} ; callPackage ./. {}

14
default.nix Normal file
View File

@ -0,0 +1,14 @@
{ stdenv
, callPackage
, lua5_3
} :
let
kiwmi = callPackage ./kiwmi.nix { lua = lua5_3; };
in
stdenv.mkDerivation {
pname = "eufon";
version = "0.1";
buildInputs = [ kiwmi ];
src = ./.;
}

57
kiwmi.nix Normal file
View File

@ -0,0 +1,57 @@
{ lib
, stdenv
, fetchFromGitHub
, cairo
, fennel
, git
, glib
, libdrm
, libinput
, libxcb
, libxkbcommon
, libxml2
, lua
, meson
, ninja
, pango
, pkg-config
, scdoc
, wayland
, wayland-protocols
, wlroots
, xwayland
}:
stdenv.mkDerivation rec {
pname = "kiwmi";
version = "20220315";
src = ./kiwmi;
nativeBuildInputs = [
meson
ninja
pkg-config
scdoc
];
buildInputs = [
cairo
fennel
glib
git # "needed to make the version string", le sigh
libdrm
libinput
libxcb
libxkbcommon
libxml2
lua
pango
wayland
wayland-protocols
wlroots
xwayland
];
# mesonFlags = [ "-Dxwayland=enabled" ];
}