going to try with libcryptsetup-rs

This commit is contained in:
Aaron Honeycutt 2025-04-24 19:49:33 -06:00
parent 27e5e98669
commit ff6e4a0b74
4 changed files with 146 additions and 8 deletions

View file

@ -19,8 +19,10 @@
# Setting variables that everything uses
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
CLANG_PATH = "${pkgs.llvmPackages.clang}/bin/clang";
CRYPTSETUP_PATH = "${pkgs.cryptsetup.dev}/lib/pkgconfig";
in rec {
# For `nix build` & `nix run`:
defaultPackage = naersk'.buildPackage {
inherit LIBCLANG_PATH CLANG_PATH;
@ -32,8 +34,8 @@
# For `nix develop` (optional, can be skipped):
devShell = pkgs.mkShell {
inherit LIBCLANG_PATH CLANG_PATH;
buildInputs = with pkgs; [ pkg-config openssl ];
nativeBuildInputs = with pkgs; [ rustc cargo util-linux.dev ];
buildInputs = with pkgs; [ openssl cryptsetup.dev ];
nativeBuildInputs = with pkgs; [ rustc cargo pkg-config util-linux.dev ];
};
}
);