From 590d6d1badea1956a31480a0cba1d8d029cf45d3 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Tue, 7 Jul 2020 14:01:39 +0200 Subject: [PATCH] undate to latest flake --- README.md | 11 ++++------- example/flake.nix | 8 ++++---- 2 files changed, 8 insertions(+), 11 deletions(-) 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; } );