add nix files
This commit is contained in:
parent
c9ac2b6ff1
commit
0073a67ac2
2 changed files with 61 additions and 0 deletions
39
nix/river.nix
Normal file
39
nix/river.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
pname = "river";
|
||||
version = "master";
|
||||
|
||||
src = ./.;
|
||||
# src = builtins.fetchGit {
|
||||
# url = "https://github.com/ifreund/river";
|
||||
# ref = "master";
|
||||
# };
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
zig
|
||||
wayland
|
||||
wayland-protocols
|
||||
wlroots
|
||||
libxkbcommon
|
||||
pixman
|
||||
libudev
|
||||
xorg.libX11
|
||||
libGL
|
||||
libevdev
|
||||
scdoc
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
export HOME=$TMPDIR
|
||||
zig build -Drelease-safe -Dxwayland -Dman-pages
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
zig build -Drelease-safe -Dxwayland -Dman-pages --prefix $out install
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue