adjust devshell

This commit is contained in:
Malte Tammena 2024-04-24 09:19:25 +02:00
parent 1241dea3a4
commit d6a8f50a6c
2 changed files with 31 additions and 31 deletions

View file

@ -166,42 +166,41 @@
partitions = 1; partitions = 1;
partitionType = "count"; partitionType = "count";
}); });
};
packages =
{
default = aba2sat;
aspforaba = pkgs.callPackage ./nix/packages/aspforaba.nix {inherit (self'.packages) clingo;};
clingo = pkgs.callPackage ./nix/packages/clingo.nix {};
}
// lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
aba2sat-llvm-coverage = craneLibLLvmTools.cargoLlvmCov (commonArgs
// {
inherit cargoArtifacts;
});
}; };
apps.default = flake-utils.lib.mkApp { packages = {
drv = aba2sat; default = aba2sat;
}; aspforaba = pkgs.callPackage ./nix/packages/aspforaba.nix { inherit (self'.packages) clingo; };
clingo = pkgs.callPackage ./nix/packages/clingo.nix { };
} // lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
aba2sat-llvm-coverage = craneLibLLvmTools.cargoLlvmCov (commonArgs // {
inherit cargoArtifacts;
});
};
devShells.default = craneLib.devShell { apps.default = flake-utils.lib.mkApp {
# Inherit inputs from checks. drv = aba2sat;
checks = self.checks.${system}; };
RUST_LOG = "trace"; devShells.default = craneLib.devShell {
# Inherit inputs from checks.
checks = self.checks.${system};
# Extra inputs can be added here; cargo and rustc are provided by default. RUST_LOG = "trace";
packages = [
pkgs.nil inputsFrom = [ ];
pkgs.pre-commit
pkgs.shellcheck packages = [
pkgs.shfmt pkgs.hyperfine
pkgs.nodejs pkgs.lldb
pkgs.hyperfine pkgs.nil
self'.packages.aspforaba pkgs.nodejs
]; pkgs.pre-commit
pkgs.shellcheck
pkgs.shfmt
self'.packages.aspforaba
];
};
}; };
}; };
};
} }

View file

@ -1,2 +1,3 @@
[toolchain] [toolchain]
channel = "nightly" channel = "nightly"
components = [ "rust-analyzer" ]