From b468b7630cbd62b84b04fdd3a5574a515260205e Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 5 Nov 2024 19:16:42 +0000 Subject: init --- flake.nix | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d6cf6f5 --- /dev/null +++ b/flake.nix @@ -0,0 +1,45 @@ +{ + description = "An implementation of the Language Protocol Server for Pug.js"; + + inputs = { + lsp-src = { + #)url = github:opa-oz/pug-lsp; + url = path:/home/op/leet/pug-lsp/; + flake = false; + }; + }; + + outputs = + { self + , lsp-src + , nixpkgs + }: + let + supportedSystems = [ "x86_64-linux" ]; + forAllSystems = nixpkgs.lib.genAttrs supportedSystems; + nixpkgsFor = forAllSystems (system: import nixpkgs { + inherit system; + overlays = [ self.overlays.default ]; + }); + in + { + overlays.default = final: prev: { + pug-lsp = + final.buildGoModule { + vendorHash = "sha256-WQS8yx2g1j30SpBTCIIpbpHiPW4n2XqT4tnJtY9FQxA="; + pname = "pug-lsp"; + version = "master"; + # doCheck = false; # update source + src = lsp-src; + buildInputs = []; + }; + }; + + packages = forAllSystems (system: { + inherit (nixpkgsFor."${system}") pug-lsp; + }); + + defaultPackage = forAllSystems (system: self.packages."${system}".pug-lsp); + }; +} + -- cgit v1.2.3