add git to build script so docker builds right
This commit is contained in:
parent
449e152553
commit
ea9268d856
1 changed files with 7 additions and 0 deletions
|
@ -1,12 +1,14 @@
|
|||
{
|
||||
stdenv,
|
||||
compose2nix,
|
||||
git,
|
||||
...
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
name = "jank-client";
|
||||
src = ./.;
|
||||
nativeBuildInputs = [
|
||||
git
|
||||
compose2nix
|
||||
];
|
||||
buildPhase = ''
|
||||
|
@ -14,6 +16,11 @@ stdenv.mkDerivation {
|
|||
echo "systemctl start docker-build-jank-client-jank.service" >> start-server
|
||||
echo "systemctl restart docker-jank-client-jank.service" >> start-server
|
||||
chmod a+x start-server
|
||||
git init
|
||||
git add -A
|
||||
git config user.name "name"
|
||||
git config user.email "name@url"
|
||||
git commit -m "init"
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir $out/bin -p
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue