default.nix (446B)
1 { pkgs, ... }: 2 3 pkgs.stdenv.mkDerivation { 4 name = "k8s.infra"; 5 src = ./.; 6 phases = [ "installPhase" "fixupPhase" ]; 7 buildInputs = with pkgs; [ 8 makeWrapper 9 ]; 10 installPhase = '' 11 mkdir -p $out $out/bin 12 cp $src/k8s.infra.sh $out/bin/k8s.infra 13 14 wrapProgram "$out/bin/k8s.infra" --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.nixos-generators pkgs.virtmanager pkgs.libguestfs-with-appliance pkgs.qemu pkgs.libvirt ]} 15 ''; 16 }