This commit is contained in:
zimbatm
2020-04-22 17:12:09 +02:00
parent 464b6ecb9b
commit e2ad62c2e3
3 changed files with 92 additions and 13 deletions

20
example/flake.nix Normal file
View File

@@ -0,0 +1,20 @@
{
description = "Flake utils demo";
edition = 201909;
inputs.utils = {
type = "git";
uri = "file:///home/zimbatm/go/src/github.com/zimbatm/flake-utils";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
rec {
packages.hello = pkgs.hello;
defaultPackage = packages.hello;
apps.hello = utils.lib.mkApp packages.hello;
defaultApp = apps.hello;
}
);
}