working niri build
This commit is contained in:
parent
91eb1b1c6b
commit
6224cb74ca
3 changed files with 3686 additions and 0 deletions
3649
base-system/packages/niri/Cargo.lock
generated
Normal file
3649
base-system/packages/niri/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
36
base-system/packages/niri/default.nix
Normal file
36
base-system/packages/niri/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
with import <nixpkgs> {};
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "niri";
|
||||||
|
version = "0.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "twoneis";
|
||||||
|
repo = "niri";
|
||||||
|
sha256 = "0jg5hndlfsnnj10dhy8sigwnpqj5sixqgcfcd2w2jb3z9wb6ifyh";
|
||||||
|
rev = "v${version}";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoLock = {
|
||||||
|
lockFile = ./Cargo.lock;
|
||||||
|
outputHashes = {
|
||||||
|
"smithay-0.3.0" = "sha256-6R2FaqjAZL9gBUB/4/JD0LQV2W/rDS1SNYNCL4TTlu0=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
LIBCLANG_PATH = "${pkgs.clang.cc.lib}/lib";
|
||||||
|
BINDGEN_EXTRA_CLANG_ARGS = [
|
||||||
|
''-I"${libclang.lib}/lib/clang/${libclang.version}/include"''
|
||||||
|
"-I ${glibc.dev}/include"
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeBinaryWrapper pkg-config libclang ];
|
||||||
|
buildInputs = [ libglvnd libinput libxkbcommon mesa seatd udev wayland libclang pipewire ];
|
||||||
|
|
||||||
|
RUSTFLAGS = map (a: "-C link-arg=${a}") [
|
||||||
|
"-Wl,--push-state,--no-as-needed"
|
||||||
|
"-lEGL"
|
||||||
|
"-lwayland-client"
|
||||||
|
"-Wl,--pop-state"
|
||||||
|
];
|
||||||
|
}
|
1
base-system/packages/niri/result
Symbolic link
1
base-system/packages/niri/result
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/nix/store/dg3mgayq9mxfqspwad8rdmj2i5rmgn56-niri-0.1
|
Loading…
Add table
Add a link
Reference in a new issue