mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
Merge pull request #180768 from yayayayaka/snipe-it-mysqldump
This commit is contained in:
commit
21726eb51e
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, stdenv, lib, fetchFromGitHub, dataDir ? "/var/lib/snipe-it" }:
|
||||
{ pkgs, stdenv, lib, fetchFromGitHub, dataDir ? "/var/lib/snipe-it", mariadb }:
|
||||
|
||||
let
|
||||
package = (import ./composition.nix {
|
||||
|
@ -13,6 +13,7 @@ let
|
|||
ln -s ${dataDir}/public/uploads $out/public/uploads
|
||||
ln -s ${dataDir}/bootstrap/cache $out/bootstrap/cache
|
||||
chmod +x $out/artisan
|
||||
substituteInPlace config/database.php --replace "env('DB_DUMP_PATH', '/usr/local/bin')" "env('DB_DUMP_PATH', '${mariadb}/bin')"
|
||||
'';
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue