mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-21 03:19:17 +03:00
feature: add new dream-lock.json files to git
This commit is contained in:
parent
bc3c3820b0
commit
77763c957e
@ -185,10 +185,15 @@ overrideUtils
|
||||
writePureShellScriptBin "resolve"
|
||||
[
|
||||
pkgs.nix
|
||||
pkgs.gitMinimal
|
||||
]
|
||||
''
|
||||
cd $WORKDIR
|
||||
${translator.translateBin} ${argsJsonFile}
|
||||
if git rev-parse --show-toplevel &>/dev/null; then
|
||||
echo "adding file to git: ${project.dreamLockPath}"
|
||||
git add ${project.dreamLockPath}
|
||||
fi
|
||||
'';
|
||||
|
||||
# a script that produces and dumps the dream-lock json for a given source
|
||||
|
Loading…
Reference in New Issue
Block a user