flake-utils/example/flake.nix

17 lines
428 B
Nix
Raw Normal View History

2020-04-22 17:12:09 +02:00
{
description = "Flake utils demo";
2020-05-30 00:38:23 +02:00
inputs.utils.uri = "github:numtide/flake-utils";
2020-04-22 17:12:09 +02:00
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
rec {
packages.hello = pkgs.hello;
defaultPackage = packages.hello;
2020-04-22 17:17:40 +02:00
apps.hello = utils.lib.mkApp { drv = packages.hello; };
2020-04-22 17:12:09 +02:00
defaultApp = apps.hello;
}
);
}