Skip to content

Commit

Permalink
Add pkgs-config to native build inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinleroy committed Aug 25, 2024
1 parent dec0a2d commit 7f9731f
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@
cargo test
'';
in {
devShell = pkgs.mkShell {
buildInputs = [ checkProject ] ++ (with pkgs; [
devShell = with pkgs; mkShell {
nativeBuildInputs = [ pkg-config ];
buildInputs = [
checkProject

llvmPackages_latest.llvm
llvmPackages_latest.lld

Expand All @@ -86,30 +89,11 @@
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration
] ++ lib.optionals stdenv.isLinux [
# Libraries needed in testing
alsa-lib.dev
udev.dev
]);
];

RUSTC_LINKER = "${pkgs.llvmPackages.clangUseLLVM}/bin/clang";
RUSTC_LINKER = "${llvmPackages.clangUseLLVM}/bin/clang";
};

# packages = rec {
# default = cargo-argus;

# cargo-argus = pkgs.rustPlatform.buildRustPackage {
# pname = name;
# inherit version;
# src = ./.;
# cargoSha256 = pkgs.lib.fakeHash;
# release = true;
# };

# # TODO package and release tutorial with nix
# # argus-tutorial = {};

# # TODO package and release extension with nix
# # vscode-argus = {};
# };
});
}

0 comments on commit 7f9731f

Please sign in to comment.