mirror of
https://codeberg.org/icewind/mill-scale.git
synced 2026-06-03 18:04:09 +02:00
This commit is contained in:
parent
6055ccecb6
commit
d8e263916a
3 changed files with 16 additions and 8 deletions
|
|
@ -20,10 +20,13 @@ let
|
|||
hasDefaultPackage = pathExists (src + /nix/package.nix);
|
||||
|
||||
autoDeps = (import ./autodeps { inherit lib src config; });
|
||||
buildDeps = pkgs: {
|
||||
buildDeps = pkgs: rec {
|
||||
buildInputs = (autoDeps pkgs).buildInputs ++ (config.buildInputs pkgs);
|
||||
nativeBuildInputs = (autoDeps pkgs).nativeBuildInputs ++ (config.nativeBuildInputs pkgs);
|
||||
env = (autoDeps pkgs).env // (config.buildEnv pkgs);
|
||||
runtimeInputs = (autoDeps pkgs).runtimeInputs ++ (config.runtimeInputs pkgs);
|
||||
env = (autoDeps pkgs).env // (config.buildEnv pkgs) // {
|
||||
LD_LIBRARY_PATH = "/run/opengl-driver/lib/:${lib.makeLibraryPath (runtimeInputs)}";
|
||||
};
|
||||
};
|
||||
in
|
||||
warnIf (! builtins ? readFileType) "Unsupported Nix version in use."
|
||||
|
|
@ -70,6 +73,11 @@ warnIf (! builtins ? readFileType) "Unsupported Nix version in use."
|
|||
default = pkgs: { };
|
||||
description = "build environent variables for the package";
|
||||
};
|
||||
runtimeInputs = mkOption {
|
||||
type = function;
|
||||
default = pkgs: [ ];
|
||||
description = "runtime inputs for the package";
|
||||
};
|
||||
tools = mkOption {
|
||||
type = function;
|
||||
default = pkgs: with pkgs; [ cargo-edit bacon ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue