diff --git a/README.md b/README.md index 301bcb4..6f05eb3 100644 --- a/README.md +++ b/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; } ); diff --git a/example/flake.nix b/example/flake.nix index c6692bf..a3cc11b 100644 --- a/example/flake.nix +++ b/example/flake.nix @@ -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; } );