d4: nix-flake: language-specific profile works
parent
c11b756d38
commit
6b4c1c2cce
|
@ -10,7 +10,7 @@
|
||||||
overlays = [ ];
|
overlays = [ ];
|
||||||
pkgs = import nixpkgs { system = sys; overlays = overlays; };
|
pkgs = import nixpkgs { system = sys; overlays = overlays; };
|
||||||
shellHookAfter = ''
|
shellHookAfter = ''
|
||||||
echo "The input files should be placed under ./data/{submission,example}.txt
|
echo "The input files should be placed under ./data/{submission,example}.txt"
|
||||||
echo "This problem shares one input between two parts"
|
echo "This problem shares one input between two parts"
|
||||||
'';
|
'';
|
||||||
py_pkgs = [ pkgs.python310 ];
|
py_pkgs = [ pkgs.python310 ];
|
||||||
|
@ -25,23 +25,25 @@
|
||||||
echo "Run ./run-py.sh for Python's output and ./run-lua.sh for Lua's output"
|
echo "Run ./run-py.sh for Python's output and ./run-lua.sh for Lua's output"
|
||||||
'' + shellHookAfter;
|
'' + shellHookAfter;
|
||||||
};
|
};
|
||||||
# devShells.${sys} = {
|
devShells = {
|
||||||
# lua = pkgs.mkShell {
|
# nix develop ./#lua
|
||||||
# nativeBuildInputs = lua_pkgs;
|
lua = pkgs.mkShell {
|
||||||
# shellHook = ''
|
nativeBuildInputs = lua_pkgs;
|
||||||
# echo "> Lua runtime"
|
shellHook = ''
|
||||||
# echo "Run ./run-lua.sh to see solution's output"
|
echo "> Lua runtime"
|
||||||
# '' + shellHookAfter;
|
echo "Run ./run-lua.sh to see the output of the solution"
|
||||||
# };
|
'' + shellHookAfter;
|
||||||
# python = pkgs.mkShell {
|
};
|
||||||
# nativeBuildInputs = py_pkgs;
|
# nix develop ./#python
|
||||||
# shellHook = ''
|
python = pkgs.mkShell {
|
||||||
# echo "> Python3 runtime"
|
nativeBuildInputs = py_pkgs;
|
||||||
# echo "Run ./run-py.sh to see solution's output"
|
shellHook = ''
|
||||||
# '' + shellHookAfter;
|
echo "> Python3 runtime"
|
||||||
#
|
echo "Run ./run-py.sh to see the output of the solution"
|
||||||
# };
|
'' + shellHookAfter;
|
||||||
# };
|
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue