brewery
notashelf /
49f64c9c98c1477289fce86b175eb203ab5d3f15

nixir

public

Import-resolving Nix IR plugin

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/nixir.git
flake.nixNix38 lines968 B
1
{
2
  inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
3
4
  outputs = {nixpkgs, ...}: let
5
    systems = ["x86_64-linux" "aarch64-linux"];
6
    forAllSystems = nixpkgs.lib.genAttrs systems;
7
  in {
8
    devShells = forAllSystems (system: let
9
      pkgs = nixpkgs.legacyPackages.${system};
10
    in {
11
      default = pkgs.mkShell {
12
        buildInputs = with pkgs; [
13
          boost.dev
14
          libblake3.dev
15
16
          nixVersions.nixComponents_2_32.nix-store
17
          nixVersions.nixComponents_2_32.nix-expr
18
          nixVersions.nixComponents_2_32.nix-cmd
19
          nixVersions.nixComponents_2_32.nix-fetchers
20
          nixVersions.nixComponents_2_32.nix-main
21
          nixVersions.nixComponents_2_32.nix-util
22
          nixVersions.nix_2_32
23
        ];
24
25
        nativeBuildInputs = with pkgs; [
26
          cmake
27
          pkg-config
28
          ninja
29
          bear
30
        ];
31
32
        env = {
33
          NIX_PLUGINABI = "0.2";
34
        };
35
      };
36
    });
37
  };
38
}