flake.nix: use finalPackage instead of passing it manually
This commit is contained in:
parent
8364cf4d0b
commit
0607e24ec2
2 changed files with 6 additions and 6 deletions
|
@ -2,9 +2,7 @@
|
|||
|
||||
concatMapAttrs
|
||||
(name: package: {
|
||||
${name} = package.passthru.shell.overrideAttrs (prevAttrs: { inputsFrom = [ package ]; });
|
||||
${name + "-extra"} = package.passthru.shell-extra.overrideAttrs (
|
||||
prevAttrs: { inputsFrom = [ package ]; }
|
||||
);
|
||||
${name} = package.passthru.shell;
|
||||
${name + "-extra"} = package.passthru.shell-extra;
|
||||
})
|
||||
packages
|
||||
|
|
|
@ -91,7 +91,7 @@ let
|
|||
];
|
||||
in
|
||||
|
||||
effectiveStdenv.mkDerivation {
|
||||
effectiveStdenv.mkDerivation (finalAttrs: {
|
||||
name = "llama.cpp";
|
||||
src = ../../.;
|
||||
meta = {
|
||||
|
@ -171,12 +171,14 @@ effectiveStdenv.mkDerivation {
|
|||
name = "default${descriptionSuffix}";
|
||||
description = "contains numpy and sentencepiece";
|
||||
buildInputs = [ llama-python ];
|
||||
inputsFrom = [ finalAttrs.finalPackage ];
|
||||
};
|
||||
|
||||
shell-extra = mkShell {
|
||||
name = "extra${descriptionSuffix}";
|
||||
description = "contains numpy, sentencepiece, torchWithoutCuda, and transformers";
|
||||
buildInputs = [ llama-python-extra ];
|
||||
inputsFrom = [ finalAttrs.finalPackage ];
|
||||
};
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue