12 chickenInstallFlags ? [ ],
18 overrides = callPackage ./overrides.nix { };
19 baseName = lib.getName name;
21 if builtins.hasAttr baseName overrides then builtins.getAttr baseName overrides else lib.id;
23 (stdenv.mkDerivation (
25 name = "chicken-${name}";
26 propagatedBuildInputs = buildInputs;
31 buildInputs = [ chicken ];
35 CSC_OPTIONS = lib.concatStringsSep " " cscOptions;
39 chicken-install -cached -no-install -host ${lib.escapeShellArgs chickenInstallFlags}
46 export CHICKEN_INSTALL_PREFIX=$out
47 export CHICKEN_INSTALL_REPOSITORY=$out/lib/chicken/${toString chicken.binaryVersion}
48 chicken-install -cached -host ${lib.escapeShellArgs chickenInstallFlags}
53 --prefix CHICKEN_REPOSITORY_PATH : "$out/lib/chicken/${toString chicken.binaryVersion}:$CHICKEN_REPOSITORY_PATH" \
54 --prefix CHICKEN_INCLUDE_PATH : "$CHICKEN_INCLUDE_PATH:$out/share" \
55 --prefix PATH : "$out/bin:${chicken}/bin:$CHICKEN_REPOSITORY_PATH"
64 inherit (chicken.meta) platforms;
65 } // args.meta or { };
67 // builtins.removeAttrs args [