mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
clean up the flake a bit
This commit is contained in:
parent
daa701753d
commit
e2450857be
1 changed files with 6 additions and 4 deletions
10
flake.nix
10
flake.nix
|
@ -16,11 +16,14 @@
|
|||
|
||||
naersk' = pkgs.callPackage naersk {};
|
||||
|
||||
# Setting variables that everything uses
|
||||
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
|
||||
CLANG_PATH = "${pkgs.llvmPackages.clang}/bin/clang";
|
||||
|
||||
in rec {
|
||||
# For `nix build` & `nix run`:
|
||||
defaultPackage = naersk'.buildPackage {
|
||||
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
|
||||
CLANG_PATH = "${pkgs.llvmPackages.clang}/bin/clang";
|
||||
inherit LIBCLANG_PATH CLANG_PATH;
|
||||
buildInputs = with pkgs; [ pkg-config openssl ];
|
||||
nativeBuildInputs = with pkgs; [ util-linux.dev ];
|
||||
src = ./.;
|
||||
|
@ -28,8 +31,7 @@
|
|||
|
||||
# For `nix develop` (optional, can be skipped):
|
||||
devShell = pkgs.mkShell {
|
||||
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
|
||||
CLANG_PATH = "${pkgs.llvmPackages.clang}/bin/clang";
|
||||
inherit LIBCLANG_PATH CLANG_PATH;
|
||||
buildInputs = with pkgs; [ pkg-config openssl ];
|
||||
nativeBuildInputs = with pkgs; [ rustc cargo util-linux.dev ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue