split up flake

This commit is contained in:
mtgmonkey 2025-06-10 09:51:49 -04:00
parent 6513e048d5
commit 6da237a560
3 changed files with 119 additions and 113 deletions

23
package.nix Normal file
View file

@ -0,0 +1,23 @@
{
stdenv,
compose2nix,
...
}:
stdenv.mkDerivation {
name = "jank-client";
src = ./.;
nativeBuildInputs = [
compose2nix
];
buildPhase = ''
echo "#!/usr/bin/env bash" > start-server
echo "systemctl start docker-build-jank-client-jank.service" >> start-server
echo "systemctl restart docker-jank-client-jank.service" >> start-server
'';
installPhase = ''
mkdir $out/bin -p
mkdir $out/src -p
cp start-server $out/bin/jank-client
cp . $out/src -r
'';
}