2024-05-06 21:40:26 +00:00
|
|
|
{
|
2024-05-06 22:21:40 +00:00
|
|
|
description = "Aux template for C project";
|
2024-05-06 21:40:26 +00:00
|
|
|
|
2024-05-18 08:28:57 +00:00
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-05-06 21:40:26 +00:00
|
|
|
|
2024-05-06 21:46:22 +00:00
|
|
|
outputs =
|
2024-05-18 08:28:57 +00:00
|
|
|
{ nixpkgs, ... }:
|
2024-05-06 21:40:26 +00:00
|
|
|
let
|
|
|
|
forAllSystems =
|
|
|
|
function:
|
2024-05-07 07:08:20 +00:00
|
|
|
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
|
|
|
|
system: function nixpkgs.legacyPackages.${system}
|
|
|
|
);
|
2024-05-06 21:46:22 +00:00
|
|
|
in
|
|
|
|
rec {
|
2024-05-06 21:53:12 +00:00
|
|
|
devShells = forAllSystems (pkgs: {
|
2024-05-07 07:08:20 +00:00
|
|
|
default = pkgs.mkShell { inputsFrom = [ packages.${pkgs.system}.hello ]; };
|
2024-05-06 21:53:12 +00:00
|
|
|
});
|
2024-05-06 21:40:26 +00:00
|
|
|
|
|
|
|
packages = forAllSystems (pkgs: rec {
|
|
|
|
default = hello;
|
2024-05-07 07:08:20 +00:00
|
|
|
hello = pkgs.callPackage ./hello.nix { };
|
2024-05-06 21:40:26 +00:00
|
|
|
});
|
|
|
|
|
2024-05-07 07:08:20 +00:00
|
|
|
overlays.default = final: prev: { hello = prev.callPackage ./default.nix { }; };
|
2024-05-06 21:40:26 +00:00
|
|
|
};
|
|
|
|
}
|