From b468b7630cbd62b84b04fdd3a5574a515260205e Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 5 Nov 2024 19:16:42 +0000 Subject: init --- .gitignore | 1 + flake.lock | 38 ++++++++++++++++++++++++++++++++++++++ flake.nix | 45 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 .gitignore create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2be92b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..8973a1d --- /dev/null +++ b/flake.lock @@ -0,0 +1,38 @@ +{ + "nodes": { + "lsp-src": { + "flake": false, + "locked": { + "lastModified": 1730737415, + "narHash": "sha256-HfRPBKsnd+PdTWJ7hIgClh5zS7z8QaVy5SSr3RkoEZQ=", + "path": "/home/op/leet/pug-lsp/", + "type": "path" + }, + "original": { + "path": "/home/op/leet/pug-lsp/", + "type": "path" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1721622093, + "narHash": "sha256-iQ+quy3A1EKeFyLyAtjhgSvZHH7r+xybXZkxMhasN4I=", + "path": "/nix/store/69pygfzcwihik1l871avmg5rgcsngf7f-source", + "rev": "453402b94f39f968a7c27df28e060f69e4a50c3b", + "type": "path" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "lsp-src": "lsp-src", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} 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