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
|
```nix
|
||||||
{
|
{
|
||||||
description = "Flake utils demo";
|
description = "Flake utils demo";
|
||||||
edition = 201909;
|
|
||||||
|
|
||||||
inputs.utils = {
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||||
uri = "github:numtide/flake-utils";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, utils }:
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
utils.lib.eachDefaultSystem (system:
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
let pkgs = nixpkgs.legacyPackages.${system}; in
|
let pkgs = nixpkgs.legacyPackages.${system}; in
|
||||||
rec {
|
rec {
|
||||||
packages.hello = pkgs.hello;
|
packages.hello = pkgs.hello;
|
||||||
defaultPackage = packages.hello;
|
defaultPackage = packages.hello;
|
||||||
apps.hello = utils.lib.mkApp { drv = packages.hello; };
|
apps.hello = flake-utils.lib.mkApp { drv = packages.hello; };
|
||||||
defaultApp = apps.hello;
|
defaultApp = apps.hello;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
{
|
{
|
||||||
description = "Flake utils demo";
|
description = "Flake utils demo";
|
||||||
|
|
||||||
inputs.utils.uri = "github:numtide/flake-utils";
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
outputs = { self, nixpkgs, utils }:
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
utils.lib.eachDefaultSystem (system:
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
let pkgs = nixpkgs.legacyPackages.${system}; in
|
let pkgs = nixpkgs.legacyPackages.${system}; in
|
||||||
rec {
|
rec {
|
||||||
packages.hello = pkgs.hello;
|
packages.hello = pkgs.hello;
|
||||||
defaultPackage = packages.hello;
|
defaultPackage = packages.hello;
|
||||||
apps.hello = utils.lib.mkApp { drv = packages.hello; };
|
apps.hello = flake-utils.lib.mkApp { drv = packages.hello; };
|
||||||
defaultApp = apps.hello;
|
defaultApp = apps.hello;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue