aboutsummaryrefslogtreecommitdiffhomepage
path: root/flake.nix
blob: d79a3c14319be5c725eb8b7d8e38477751a08fb6 (plain)
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
{
  description = "ego development environment";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/24.05";
  };

  outputs = { self, nixpkgs }:
    let
      supportedSystems = [ "x86_64-linux" ];
      forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
    in
    {
      devShells = forAllSystems
        (system:
          let
            pkgs = import nixpkgs {
              inherit system;
            };
          in
          {
            default = with pkgs; mkShell
              {
                packages = [
                  clang
                  acl
                  (pkgs.writeShellScriptBin "build" ''
                    go build -v -ldflags '-s -w -X main.Version=flake'
                  '')
                ];
              };
          }
        );
    };
}