Sfoglia il codice sorgente

fix(dev): ensure `dev` is returned for `kgctl --version` in the devshell (#462)

Lucas Servén Marín 1 mese fa
parent
commit
90142ea53e
1 ha cambiato i file con 4 aggiunte e 7 eliminazioni
  1. 4 7
      flake.nix

+ 4 - 7
flake.nix

@@ -33,14 +33,14 @@
             let
               _version = builtins.getEnv "VERSION";
               homepage = "https://github.com/squat/kilo";
-              base = pkgs.buildGoModule (finallAttrs: {
+              base = pkgs.buildGoModule (finalAttrs: {
                 pname = "kilo";
                 version = if _version != "" then _version else toString (self.rev or self.dirtyRev or "unknown");
                 src = ./.;
                 vendorHash = null;
                 env.CGO_ENABLED = 0;
                 ldflags = [
-                  "-X github.com/squat/kilo/pkg/version.Version=${finallAttrs.version}"
+                  "-X github.com/squat/kilo/pkg/version.Version=${finalAttrs.version}"
                 ];
                 nativeBuildInputs = [ pkgs.installShellFiles ];
                 meta = {
@@ -282,13 +282,10 @@
                 with pkgs;
                 [
                   bash_unit
-                  (config.packages.kgctl.overrideAttrs (finallAttrs: {
+                  (config.packages.kgctl.overrideAttrs {
                     version = "dev";
                     __intentionallyOverridingVersion = true;
-                    ldflags = [
-                      "-X github.com/squat/kilo/pkg/version.Version=${finallAttrs.version}"
-                    ];
-                  }))
+                  })
                   gettext # provides envsubst
                   go
                   kind