Add raku devshell
This commit is contained in:
parent
0b262ef37d
commit
0273032031
2 changed files with 42 additions and 0 deletions
41
devshells/raku.nix
Normal file
41
devshells/raku.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ withSystem, inputs, ... }:
|
||||||
|
{
|
||||||
|
perSystem =
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
inputs',
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
devShells.raku =
|
||||||
|
let
|
||||||
|
rakudo_env = pkgs.buildEnv {
|
||||||
|
name = "rakudo-env";
|
||||||
|
paths = with pkgs; [
|
||||||
|
rakudo
|
||||||
|
zef
|
||||||
|
];
|
||||||
|
pathsToLink = [
|
||||||
|
"/bin"
|
||||||
|
"/lib"
|
||||||
|
"/share"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
libPackages = with pkgs; [ readline70 ];
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
|
buildInputs =
|
||||||
|
with pkgs;
|
||||||
|
[
|
||||||
|
# Raku toolchain
|
||||||
|
rakudo_env
|
||||||
|
]
|
||||||
|
++ libPackages;
|
||||||
|
shellHook = ''
|
||||||
|
export LD_LIBRARY_PATH=${lib.makeLibraryPath libPackages}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -26,6 +26,7 @@
|
||||||
./home-manager/machines/wsl/home.nix
|
./home-manager/machines/wsl/home.nix
|
||||||
./devshells/rust.nix
|
./devshells/rust.nix
|
||||||
./devshells/idris2.nix
|
./devshells/idris2.nix
|
||||||
|
./devshells/raku.nix
|
||||||
];
|
];
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
|
|
Loading…
Add table
Reference in a new issue