This commit is contained in:
Qyriad 2026-01-27 11:29:10 +01:00
parent d8ac4e157d
commit bcd11513ef
12 changed files with 1042 additions and 5 deletions

View file

@ -2,10 +2,11 @@
lib,
stdenv,
rustHooks,
rustPackages,
versionCheckHook,
}: lib.callWith' rustPackages ({
rustPlatform,
cargo,
clippy,
versionCheckHook,
}: let
cargoToml = lib.importTOML ./Cargo.toml;
cargoPackage = cargoToml.package;
@ -50,13 +51,17 @@ in stdenv.mkDerivation (self: {
in mkShell' {
name = "${self.pname}-devshell-${self.version}";
inputsFrom = [ self.finalPackage ];
packages = [
rustPackages.rustc
rustPackages.rustfmt
];
};
passthru.tests.clippy = self.finalPackage.overrideAttrs (prev: {
pname = "${self.pname}-clippy";
nativeCheckInputs = prev.nativeCheckInputs or [ ] ++ [
clippy
rustPackages.clippy
];
dontConfigure = true;
@ -78,4 +83,4 @@ in stdenv.mkDerivation (self: {
meta = {
mainProgram = "PKGNAME";
};
})
}))