undate to latest flake
This commit is contained in:
parent
400fa6d9af
commit
590d6d1bad
11
README.md
11
README.md
|
@ -43,19 +43,16 @@ Here is how it looks like in practice:
|
|||
```nix
|
||||
{
|
||||
description = "Flake utils demo";
|
||||
edition = 201909;
|
||||
|
||||
inputs.utils = {
|
||||
uri = "github:numtide/flake-utils";
|
||||
};
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, utils }:
|
||||
utils.lib.eachDefaultSystem (system:
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system}; in
|
||||
rec {
|
||||
packages.hello = pkgs.hello;
|
||||
defaultPackage = packages.hello;
|
||||
apps.hello = utils.lib.mkApp { drv = packages.hello; };
|
||||
apps.hello = flake-utils.lib.mkApp { drv = packages.hello; };
|
||||
defaultApp = apps.hello;
|
||||
}
|
||||
);
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
{
|
||||
description = "Flake utils demo";
|
||||
|
||||
inputs.utils.uri = "github:numtide/flake-utils";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, utils }:
|
||||
utils.lib.eachDefaultSystem (system:
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system}; in
|
||||
rec {
|
||||
packages.hello = pkgs.hello;
|
||||
defaultPackage = packages.hello;
|
||||
apps.hello = utils.lib.mkApp { drv = packages.hello; };
|
||||
apps.hello = flake-utils.lib.mkApp { drv = packages.hello; };
|
||||
defaultApp = apps.hello;
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue