From 4472b2643168b3f36e22c2b96644f3181c78c4fa Mon Sep 17 00:00:00 2001 From: Gregor Grigorjan Date: Thu, 27 Jun 2024 16:05:53 +0300 Subject: [PATCH] refactor(docs): clean up example flake code --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 98c12a1d..b80a6f1a 100644 --- a/README.md +++ b/README.md @@ -75,11 +75,12 @@ A minimal flake for creating an Emacs with the `magit-file-icons` package could outputs = inputs: let - pkgs = import inputs.nixpkgs { system = "x86_64-linux"; }; + system = "x86_64-linux"; + pkgs = inputs.nixpkgs.legacyPackages.${system}; in { - packages."x86_64-linux".default = pkgs.emacsWithPackages (p: [ - inputs.magit-file-icons.packages."x86_64-linux".default + packages.${system}.default = pkgs.emacsWithPackages (_: [ + inputs.magit-file-icons.packages.${system}.default ]); }; }