35 lines
865 B
Nix
35 lines
865 B
Nix
|
with import <nixpkgs> {
|
||
|
overlays = [
|
||
|
(final: prev: {
|
||
|
tcc-mob = final.callPackage ./nix/tinycc.nix { stdenv = final.gcc13Stdenv; };
|
||
|
chicken = final.callPackage ./nix/chicken.nix {
|
||
|
stdenv = final.gcc13Stdenv;
|
||
|
version = "6.0.0-8c16ffb";
|
||
|
};
|
||
|
})
|
||
|
];
|
||
|
};
|
||
|
mkShell {
|
||
|
packages = with pkgs; [
|
||
|
tcc-mob
|
||
|
chicken
|
||
|
]
|
||
|
# ++ (with pkgs.chickenPackages_5.chickenEggs; [
|
||
|
# apropos
|
||
|
# chicken-doc
|
||
|
# srfi-1
|
||
|
# srfi-18
|
||
|
# lsp-server
|
||
|
# srfi-152
|
||
|
# ])
|
||
|
;
|
||
|
shellHook = ''
|
||
|
export CC="${pkgs.tcc-mob}/bin/tcc"
|
||
|
export CHICKEN_INSTALL_PREFIX="$HOME/.chicken"
|
||
|
export CHICKEN_INSTALL_REPOSITORY="$HOME/.chicken/eggs"
|
||
|
export CHICKEN_REPOSITORY_PATH="${pkgs.chicken}/lib/chicken/12:$HOME/.chicken/eggs"
|
||
|
export PATH="$PATH:$CHICKEN_PREFIX"
|
||
|
export CHICKEN_INSTALL_PREFIX="${pkgs.chicken}"
|
||
|
'';
|
||
|
}
|