diff --git a/templates/ada/flake.nix b/templates/ada/flake.nix index ae2a7e3..25d9f4e 100644 --- a/templates/ada/flake.nix +++ b/templates/ada/flake.nix @@ -17,16 +17,17 @@ pname = "thing"; version = "v0.0.0"; src = ./.; + buildInputs = with pkgs; [ gnat12 gprbuild ]; + + buildPhase = '' + gprbuild thing + ''; + + installPhase = '' + mkdir -p $out/bin + mv thing $out/bin + ''; }; - - buildPhase = '' - gprbuild thing - ''; - - installPhase = '' - mkdir -p $out/bin - mv thing $out/bin - ''; }); defaultPackage = forAllSystems (system: self.packages.${system}.thing);