๐Ÿ“ฆ SergioRibera / srtemplate

๐Ÿ“„ flake.nix ยท 30 lines
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{
  description = "A string template library";
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    crane.url = "github:ipetkov/crane";
    fenix.url = "github:nix-community/fenix";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = {
    self,
    nixpkgs,
    flake-utils,
    ...
  } @ inputs:
  # Iterate over Arm, x86 for MacOs ๐ŸŽ and Linux ๐Ÿง
    flake-utils.lib.eachSystem (flake-utils.lib.defaultSystems) (
      system: let
        pkgs = nixpkgs.legacyPackages.${system};
        libBundle = import ./. {
          inherit system pkgs;
          crane = inputs.crane.mkLib pkgs;
          fenix = inputs.fenix.packages;
        };
      in {
        inherit (libBundle) devShells;
      }
    );
}