This repository was archived by the owner on Dec 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathflake.nix
More file actions
47 lines (41 loc) · 1.67 KB
/
flake.nix
File metadata and controls
47 lines (41 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
description = "A Nix flake for the meshStack docs developer shell";
inputs = {
nixpkgs.url = "nixpkgs/nixos-24.11";
flake-utils.url = "github:numtide/flake-utils";
# Fixing packages
# 1. Find out which package is needed under https://search.nixos.org/packages
# 2. Search package under https://lazamar.co.uk/nix-versions/ and pick version
# 3. Extract the packages as per instructions
# 4. Add packages in pkgs.mkShell
dhall-pkgs = {
url = "github:NixOS/nixpkgs/d86bcbb415938888e7f606d55c52689aec127f43";
};
};
outputs = { self, nixpkgs, flake-utils, dhall-pkgs }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
dhallpkgs = import dhall-pkgs { inherit system; };
fix_dhall = dhallpkgs.haskellPackages.dhall_1_41_1; # https://lazamar.co.uk/nix-versions/?channel=nixpkgs-unstable&package=dhall
fix_dhall_docs = dhallpkgs.haskellPackages.dhall-docs; # https://lazamar.co.uk/nix-versions/?channel=nixpkgs-unstable&package=dhall-docs
fix_dhall_json = dhallpkgs.haskellPackages.dhall-json_1_7_10; # https://lazamar.co.uk/nix-versions/?channel=nixpkgs-unstable&package=dhall-json
fix_dhall_lsp = dhallpkgs.dhall-lsp-server;
core_packages = [
# node / typescript (meshPanel, utilities eetc.)
pkgs.nodejs_22
(pkgs.yarn.override {
nodejs = pkgs.nodejs_22;
})
pkgs.opentofu
pkgs.awscli2
];
in
{
devShells.default = pkgs.mkShell {
name = "shell with all basic runtimes and tools";
packages = core_packages;
};
}
);
}