Move all the PHP stuff to a subdir
This commit is contained in:
parent
781bdcdf8d
commit
8c9e63d12c
20
default.nix
20
default.nix
|
@ -12,4 +12,24 @@ let
|
||||||
in {
|
in {
|
||||||
ofborg.rs = stripDeps (pkgs.callPackage ./nix/ofborg-carnix.nix {}).ofborg_0_1_0;
|
ofborg.rs = stripDeps (pkgs.callPackage ./nix/ofborg-carnix.nix {}).ofborg_0_1_0;
|
||||||
ircbot = stripDeps (pkgs.callPackage ./nix/ircbot-carnix.nix {}).ircbot_0_1_0;
|
ircbot = stripDeps (pkgs.callPackage ./nix/ircbot-carnix.nix {}).ircbot_0_1_0;
|
||||||
|
|
||||||
|
# /nix/store/a4xfsgh5bwh5w4m9y1j40ry4dq892gl4-ofborg/
|
||||||
|
ofborg.php = pkgs.runCommand
|
||||||
|
"ofborg"
|
||||||
|
{
|
||||||
|
src = builtins.filterSource
|
||||||
|
(path: type: !(
|
||||||
|
(type == "symlink" && baseNameOf path == "result")
|
||||||
|
|| (type == "directory" && baseNameOf path == ".git")
|
||||||
|
))
|
||||||
|
./php;
|
||||||
|
}
|
||||||
|
''
|
||||||
|
cp -r $src ./ofborg
|
||||||
|
chmod -R u+w ./ofborg
|
||||||
|
cd ofborg
|
||||||
|
ls -la
|
||||||
|
cd ..
|
||||||
|
mv ofborg $out
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
0
composer.lock → php/composer.lock
generated
0
composer.lock → php/composer.lock
generated
Loading…
Reference in a new issue