diff --git a/flake.nix b/flake.nix index 155106ff783..7a0d7d3fc3f 100644 --- a/flake.nix +++ b/flake.nix @@ -11,7 +11,7 @@ let pkgs = nixpkgs.legacyPackages.${system}; - lastTag = "0.13.3"; + lastTag = "0.13.4"; revision = if (self ? shortRev) then "${self.shortRev}" @@ -36,6 +36,8 @@ src = ./.; + subpackage = [./cmd/devbox]; + ldflags = [ "-s" "-w" @@ -48,7 +50,7 @@ nativeBuildInputs = [ pkgs.installShellFiles ]; - postInstall = '' + postInstall = pkgs.lib.optionalString (pkgs.stdenv.buildPlatform.canExecute pkgs.stdenv.hostPlatform) '' installShellCompletion --cmd devbox \ --bash <($out/bin/devbox completion bash) \ --fish <($out/bin/devbox completion fish) \