diff --git a/flake.nix b/flake.nix index cbbadbd..ba81ccd 100644 --- a/flake.nix +++ b/flake.nix @@ -6,25 +6,23 @@ outputs = { self, nixpkgs }: let - # Evaluate an expression once per supported system (flakeExposed), - # so every output stays in sync with the same system list. forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed; pkgsFor = system: import nixpkgs { inherit system; }; - # The language server / formatter binary for this module. thriftLs = pkgs: + let + version = "0.1.1"; + in pkgs.buildGoModule { pname = "thrift-ls"; - # Keep in sync with the release tag: the binary reports this - # version and the release workflow injects the same value. - version = "0.1.0"; + inherit version; src = nixpkgs.lib.cleanSource ./.; vendorHash = "sha256-zWy0x3yktLA8dtcbwzue3aB7a+SlqwWO86G3ZP8DgOQ="; ldflags = [ "-s" "-w" - "-X github.com/karitham/thrift-ls/lsp.ServerVersion=0.1.0" + "-X github.com/karitham/thrift-ls/lsp.ServerVersion=${version}" ]; meta = { description = "A Thrift language server and formatter"; diff --git a/vscode/package-lock.json b/vscode/package-lock.json index 3ff5930..74d1008 100644 --- a/vscode/package-lock.json +++ b/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "thrift-ls", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "thrift-ls", - "version": "0.1.0", + "version": "0.1.1", "license": "MIT", "dependencies": { "vscode-languageclient": "^9.0.1" diff --git a/vscode/package.json b/vscode/package.json index 4989cb6..72099a4 100644 --- a/vscode/package.json +++ b/vscode/package.json @@ -2,7 +2,7 @@ "name": "thrift-ls", "displayName": "Thrift Language Server", "description": "Language server and formatter for Apache Thrift IDL files", - "version": "0.1.0", + "version": "0.1.1", "publisher": "karitham", "license": "MIT", "engines": {