Orzu Ionut
3 years ago
7 changed files with 58 additions and 7068 deletions
-
16.env.example
-
1.gitignore
-
6README.md
-
15composer.json
-
7039composer.lock
-
27default.nix
-
22sandd-core.nix
7039
composer.lock
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,13 +1,30 @@ |
|||
{pkgs ? import <nixpkgs> { |
|||
inherit system; |
|||
}, system ? builtins.currentSystem, noDev ? false}: |
|||
|
|||
}, system ? builtins.currentSystem, noDev ? true}: |
|||
with pkgs; |
|||
let |
|||
composerEnv = import ./composer-env.nix { |
|||
inherit (pkgs) stdenv lib writeTextFile fetchurl php unzip phpPackages; |
|||
}; |
|||
phpPack = import ./php-packages.nix { |
|||
inherit composerEnv noDev; |
|||
inherit (pkgs) fetchurl fetchgit fetchhg fetchsvn; |
|||
}; |
|||
in |
|||
import ./php-packages.nix { |
|||
inherit composerEnv noDev; |
|||
inherit (pkgs) fetchurl fetchgit fetchhg fetchsvn; |
|||
stdenv.mkDerivation { |
|||
name = "searchanddisplace-core-source"; |
|||
src = builtins.fetchGit { |
|||
url = "https://git.law/newroco/searchanddisplace-core.git"; |
|||
ref = "master"; |
|||
}; |
|||
|
|||
phases = [ "installPhase" ]; |
|||
installPhase = '' |
|||
cp -r $src $out |
|||
cp $out/.env.example $out/.env |
|||
cd $out |
|||
npm run prod |
|||
php artisan key:generate |
|||
php artisan migrate |
|||
''; |
|||
} |
@ -0,0 +1,22 @@ |
|||
{ pkgs ? import <nixpkgs> { |
|||
inherit system; |
|||
}, system ? builtins.currentSystem |
|||
}: |
|||
let |
|||
name = "search-and-displace-core"; |
|||
phpPackage = import ./default.nix { |
|||
inherit pkgs system; |
|||
}; |
|||
nodePackage = import ./node.nix { |
|||
inherit pkgs system; |
|||
}; |
|||
in |
|||
phpPackage.override { |
|||
buildInputs = [ pkgs.graphviz ]; |
|||
removeComposerArtifacts = true; # Remove composer configuration files |
|||
|
|||
# Add below all lines of post installation instructions e.g ''npm install'' ? |
|||
postInstall = '' |
|||
ll ./ |
|||
''; |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue