mirror of
https://github.com/numtide/flake-utils.git
synced 2024-11-09 07:33:46 +03:00
20 lines
547 B
Nix
20 lines
547 B
Nix
{
|
|
description = "Flake utils demo";
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let pkgs = nixpkgs.legacyPackages.${system}; in
|
|
rec {
|
|
packages = flake-utils.lib.flattenTree {
|
|
hello = pkgs.hello;
|
|
gitAndTools = pkgs.gitAndTools;
|
|
};
|
|
defaultPackage = packages.hello;
|
|
apps.hello = flake-utils.lib.mkApp { drv = packages.hello; };
|
|
defaultApp = apps.hello;
|
|
}
|
|
);
|
|
}
|