diff options
author | Akshay <[email protected]> | 2024-11-05 19:16:42 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2024-11-05 19:16:42 +0000 |
commit | b468b7630cbd62b84b04fdd3a5574a515260205e (patch) | |
tree | 1f99c57257636998b0c074e3eaca3beaf1d89632 |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | flake.lock | 38 | ||||
-rw-r--r-- | flake.nix | 45 |
3 files changed, 84 insertions, 0 deletions
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 @@ | |||
1 | { | ||
2 | "nodes": { | ||
3 | "lsp-src": { | ||
4 | "flake": false, | ||
5 | "locked": { | ||
6 | "lastModified": 1730737415, | ||
7 | "narHash": "sha256-HfRPBKsnd+PdTWJ7hIgClh5zS7z8QaVy5SSr3RkoEZQ=", | ||
8 | "path": "/home/op/leet/pug-lsp/", | ||
9 | "type": "path" | ||
10 | }, | ||
11 | "original": { | ||
12 | "path": "/home/op/leet/pug-lsp/", | ||
13 | "type": "path" | ||
14 | } | ||
15 | }, | ||
16 | "nixpkgs": { | ||
17 | "locked": { | ||
18 | "lastModified": 1721622093, | ||
19 | "narHash": "sha256-iQ+quy3A1EKeFyLyAtjhgSvZHH7r+xybXZkxMhasN4I=", | ||
20 | "path": "/nix/store/69pygfzcwihik1l871avmg5rgcsngf7f-source", | ||
21 | "rev": "453402b94f39f968a7c27df28e060f69e4a50c3b", | ||
22 | "type": "path" | ||
23 | }, | ||
24 | "original": { | ||
25 | "id": "nixpkgs", | ||
26 | "type": "indirect" | ||
27 | } | ||
28 | }, | ||
29 | "root": { | ||
30 | "inputs": { | ||
31 | "lsp-src": "lsp-src", | ||
32 | "nixpkgs": "nixpkgs" | ||
33 | } | ||
34 | } | ||
35 | }, | ||
36 | "root": "root", | ||
37 | "version": 7 | ||
38 | } | ||
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d6cf6f5 --- /dev/null +++ b/flake.nix | |||
@@ -0,0 +1,45 @@ | |||
1 | { | ||
2 | description = "An implementation of the Language Protocol Server for Pug.js"; | ||
3 | |||
4 | inputs = { | ||
5 | lsp-src = { | ||
6 | #)url = github:opa-oz/pug-lsp; | ||
7 | url = path:/home/op/leet/pug-lsp/; | ||
8 | flake = false; | ||
9 | }; | ||
10 | }; | ||
11 | |||
12 | outputs = | ||
13 | { self | ||
14 | , lsp-src | ||
15 | , nixpkgs | ||
16 | }: | ||
17 | let | ||
18 | supportedSystems = [ "x86_64-linux" ]; | ||
19 | forAllSystems = nixpkgs.lib.genAttrs supportedSystems; | ||
20 | nixpkgsFor = forAllSystems (system: import nixpkgs { | ||
21 | inherit system; | ||
22 | overlays = [ self.overlays.default ]; | ||
23 | }); | ||
24 | in | ||
25 | { | ||
26 | overlays.default = final: prev: { | ||
27 | pug-lsp = | ||
28 | final.buildGoModule { | ||
29 | vendorHash = "sha256-WQS8yx2g1j30SpBTCIIpbpHiPW4n2XqT4tnJtY9FQxA="; | ||
30 | pname = "pug-lsp"; | ||
31 | version = "master"; | ||
32 | # doCheck = false; # update source | ||
33 | src = lsp-src; | ||
34 | buildInputs = []; | ||
35 | }; | ||
36 | }; | ||
37 | |||
38 | packages = forAllSystems (system: { | ||
39 | inherit (nixpkgsFor."${system}") pug-lsp; | ||
40 | }); | ||
41 | |||
42 | defaultPackage = forAllSystems (system: self.packages."${system}".pug-lsp); | ||
43 | }; | ||
44 | } | ||
45 | |||