dev shell

This commit is contained in:
2026-01-27 18:02:51 -07:00
parent f25a32e983
commit 51df41ed8d
6 changed files with 476 additions and 1 deletions

40
flake.nix Normal file
View File

@@ -0,0 +1,40 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
gf.url = "github:anka-213/cclaw-nix-stuff/nix-flakes";
};
outputs = { self, nixpkgs, ... }@inputs:
let
supportedSystems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
each-system = f: nixpkgs.lib.genAttrs supportedSystems (system: f rec {
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) lib;
inherit system;
});
in {
devShells =
each-system ({ pkgs, system, ... }:
let
gf-lsp = import
(pkgs.fetchzip {
url = "https://github.com/anka-213/gf-lsp/archive/refs/tags/1.0.6.0.tar.gz";
hash = "sha256-UAI2qUslzLOWYjTirZJ0y4DZbkPZnVXTY0XtFO8+Rks=";
}) {inherit system;};
in {
default = pkgs.mkShell {
packages = [
inputs.gf.packages.${system}.gf-with-rgl
pkgs.graphviz
gf-lsp.gf-lsp
];
};
});
};
}