feat: project 3
This commit is contained in:
parent
8f4463782c
commit
b9a362d490
15 changed files with 5425 additions and 15 deletions
37
project3/default.nix
Normal file
37
project3/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
rec {
|
||||
project3 = file-manager;
|
||||
file-manager = { pkgs, inputs }:
|
||||
let
|
||||
inherit (inputs) crane fenix;
|
||||
toolchain = fenix.packages.${pkgs.system}.complete.withComponents [
|
||||
"rustc" "rust-std" "cargo" "rust-docs" "rustfmt" "clippy" "rust-src"
|
||||
];
|
||||
craneLib = (crane.mkLib pkgs).overrideToolchain toolchain;
|
||||
|
||||
commonArgs = {
|
||||
src = craneLib.cleanCargoSource ./.;
|
||||
strictDeps = true;
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
pkg-config
|
||||
fontconfig
|
||||
wayland
|
||||
wayland-protocols
|
||||
wayland-scanner
|
||||
vulkan-loader
|
||||
libxkbcommon
|
||||
xorg.libxcb
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libXrandr
|
||||
xorg.libXxf86vm
|
||||
];
|
||||
|
||||
passthru.commonArgs = commonArgs;
|
||||
};
|
||||
|
||||
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
|
||||
crate = craneLib.buildPackage (commonArgs // { inherit cargoArtifacts; });
|
||||
in crate;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue