dirty commits; will be reverted x2
Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
This commit is contained in:
parent
e271eedac9
commit
ca6b0983e9
3 changed files with 44 additions and 45 deletions
41
flake.nix
41
flake.nix
|
|
@ -57,7 +57,46 @@
|
||||||
devShells = eachSystem (
|
devShells = eachSystem (
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
default = import ./shell.nix { inherit pkgs; };
|
default = pkgs.mkShellNoCC {
|
||||||
|
shellHook = ''
|
||||||
|
${pkgs.pre-commit}/bin/pre-commit install --install-hooks --overwrite
|
||||||
|
export PKG_CONFIG_PATH="${
|
||||||
|
pkgs.lib.makeSearchPath "lib/pkgconfig" [
|
||||||
|
pkgs.dbus.dev
|
||||||
|
pkgs.systemdMinimal.dev
|
||||||
|
]
|
||||||
|
}"
|
||||||
|
export LIBCLANG_PATH="${pkgs.llvmPackages_latest.libclang}/lib"
|
||||||
|
# for rust-analyzer
|
||||||
|
export RUST_SRC_PATH="${pkgs.rustPlatform.rustLibSrc}"
|
||||||
|
export RUST_BACKTRACE=1
|
||||||
|
export RUSTFLAGS="${
|
||||||
|
pkgs.lib.concatStringsSep " " [
|
||||||
|
"-L${pkgs.lib.getLib pkgs.systemdMinimal}/lib"
|
||||||
|
"-lsystemd"
|
||||||
|
]
|
||||||
|
}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
dbus
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = with pkgs; [
|
||||||
|
pkgs.llvmPackages_latest.clang
|
||||||
|
pkg-config
|
||||||
|
rustc
|
||||||
|
cargo
|
||||||
|
# Formatting
|
||||||
|
pre-commit
|
||||||
|
treefmt
|
||||||
|
nixfmt-rfc-style
|
||||||
|
rustfmt
|
||||||
|
clippy
|
||||||
|
mdbook
|
||||||
|
mdformat
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,10 @@
|
||||||
"/services/web-servers/nginx/"
|
"/services/web-servers/nginx/"
|
||||||
# nix settings
|
# nix settings
|
||||||
"/config/nix.nix"
|
"/config/nix.nix"
|
||||||
|
|
||||||
|
# things tested by hand7s
|
||||||
|
"/services/web-servers/caddy"
|
||||||
|
"/programs/yazi.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
options =
|
options =
|
||||||
|
|
|
||||||
44
shell.nix
44
shell.nix
|
|
@ -1,44 +0,0 @@
|
||||||
{
|
|
||||||
pkgs ? import <nixpkgs> { },
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
llvm = pkgs.llvmPackages_latest;
|
|
||||||
in
|
|
||||||
pkgs.mkShellNoCC {
|
|
||||||
shellHook = ''
|
|
||||||
${pkgs.pre-commit}/bin/pre-commit install --install-hooks --overwrite
|
|
||||||
export PKG_CONFIG_PATH="${
|
|
||||||
pkgs.lib.makeSearchPath "lib/pkgconfig" [
|
|
||||||
pkgs.dbus.dev
|
|
||||||
pkgs.systemdMinimal.dev
|
|
||||||
]
|
|
||||||
}"
|
|
||||||
export LIBCLANG_PATH="${llvm.libclang}/lib"
|
|
||||||
# for rust-analyzer
|
|
||||||
export RUST_SRC_PATH="${pkgs.rustPlatform.rustLibSrc}"
|
|
||||||
export RUST_BACKTRACE=1
|
|
||||||
export RUSTFLAGS="${
|
|
||||||
pkgs.lib.concatStringsSep " " [
|
|
||||||
"-L${pkgs.lib.getLib pkgs.systemdMinimal}/lib"
|
|
||||||
"-lsystemd"
|
|
||||||
]
|
|
||||||
}"
|
|
||||||
'';
|
|
||||||
buildInputs = with pkgs; [
|
|
||||||
dbus
|
|
||||||
];
|
|
||||||
nativeBuildInputs = with pkgs; [
|
|
||||||
llvm.clang
|
|
||||||
pkg-config
|
|
||||||
rustc
|
|
||||||
cargo
|
|
||||||
# Formatting
|
|
||||||
pre-commit
|
|
||||||
treefmt
|
|
||||||
nixfmt-rfc-style
|
|
||||||
rustfmt
|
|
||||||
clippy
|
|
||||||
mdbook
|
|
||||||
mdformat
|
|
||||||
];
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue