WIP deck methods, added flake, and setup build deps

This commit is contained in:
2024-07-05 08:49:59 -06:00
commit 777e07035b
10 changed files with 716 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1719942202,
"narHash": "sha256-7sP4PzxRsUfRwN8rmFtRvU/nYqTI5YYeIG9P3KJV41g=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4b015946c99a5bbe9c7a685e66f165aa44644b7d",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
+34
View File
@@ -0,0 +1,34 @@
{
description = "Zig language server";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
};
outputs = {self, nixpkgs}: {
defaultPackage.x86_64-linux =
with import nixpkgs { system = "x86_64-linux"; };
stdenv.mkDerivation rec {
name = "zls-${version}";
version = "0.13.0";
src = pkgs.fetchurl {
url = "https://github.com/zigtools/zls/releases/download/${version}/zls-x86_64-linux.tar.xz";
sha256 = "sha256-7EwbRcr4jivLnrsWxnBgPMWW5PYhuWGE376DeznNhBA=";
};
sourceRoot = ".";
installPhase = ''
install -m755 -D zls $out/bin/zls
'';
meta = with lib; {
homepage = "https://github.com/zigtools/zls/releases";
description = "Zig language server";
platforms = platforms.linux;
};
# I still lack stuff here!
};
};
}