1 { callPackage, lib, stdenv, chicken, makeWrapper }:
4 , chickenInstallFlags ? []
9 overrides = callPackage ./overrides.nix { };
10 baseName = lib.getName name;
11 override = if builtins.hasAttr baseName overrides
13 builtins.getAttr baseName overrides
17 (stdenv.mkDerivation ({
18 name = "chicken-${name}";
19 propagatedBuildInputs = buildInputs;
20 nativeBuildInputs = [ chicken makeWrapper ];
21 buildInputs = [ chicken ];
25 CSC_OPTIONS = lib.concatStringsSep " " cscOptions;
29 chicken-install -cached -no-install -host ${lib.escapeShellArgs chickenInstallFlags}
36 export CHICKEN_INSTALL_PREFIX=$out
37 export CHICKEN_INSTALL_REPOSITORY=$out/lib/chicken/${toString chicken.binaryVersion}
38 chicken-install -cached -host ${lib.escapeShellArgs chickenInstallFlags}
43 --prefix CHICKEN_REPOSITORY_PATH : "$out/lib/chicken/${toString chicken.binaryVersion}:$CHICKEN_REPOSITORY_PATH" \
44 --prefix CHICKEN_INCLUDE_PATH : "$CHICKEN_INCLUDE_PATH:$out/share" \
45 --prefix PATH : "$out/bin:${chicken}/bin:$CHICKEN_REPOSITORY_PATH"
54 inherit (chicken.meta) platforms;
56 } // builtins.removeAttrs args ["name" "buildInputs" "meta"]) ).overrideAttrs override