flake: add devShells
exposed via nix registry :D can be used in nix-direnv like `use flake shells#cs.osu`
This commit is contained in:
parent
8c75ba2a2d
commit
76b6f7cfb8
11 changed files with 283 additions and 0 deletions
16
shells/php/default.nix
Normal file
16
shells/php/default.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
callPackage,
|
||||
mkShell,
|
||||
php80,
|
||||
php80Packages,
|
||||
}:
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
php80
|
||||
php80Packages.composer
|
||||
];
|
||||
|
||||
passthru = {
|
||||
osu-web = callPackage ./osu-web.nix {};
|
||||
};
|
||||
}
|
||||
26
shells/php/osu-web.nix
Normal file
26
shells/php/osu-web.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Flake for development on https://github.com/ppy/osu-web
|
||||
{
|
||||
mkShell,
|
||||
nodejs-14_x,
|
||||
nodePackages,
|
||||
php80,
|
||||
php80Packages,
|
||||
python3
|
||||
}:
|
||||
let
|
||||
phpPkg = php80.withExtensions ({ enabled, all }:
|
||||
enabled ++ [ all.intl all.redis ]
|
||||
);
|
||||
in mkShell {
|
||||
buildInputs = [
|
||||
nodejs-14_x
|
||||
nodePackages.yarn
|
||||
phpPkg
|
||||
php80Packages.composer
|
||||
python3
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export PATH="$(readlink -f ./node_modules/.bin):$PATH"
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue