From c21016e81ad2b460e05d1049cd15aafeac6f5dc9 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sat, 20 Nov 2021 03:50:10 +0000 Subject: [PATCH] Add an overlay that works --- flake.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index fe643b1..32da764 100644 --- a/flake.nix +++ b/flake.nix @@ -8,9 +8,9 @@ outputs = { self, nixpkgs, utils }: let - supportedSystems = nixpkgs.lib.platforms.unix; + supportedSystems = [ "x86_64-linux" "aarch64-linux" ]; in - utils.lib.eachSystem supportedSystems (system: + (utils.lib.eachSystem supportedSystems (system: let pkgs = import nixpkgs { inherit system; }; in rec { @@ -45,5 +45,9 @@ packages = [ pkgconfig dbus rustup ]; }; devShell = devShells.rustybar; - }); + })) // { + overlay = final: prev: { + inherit (self.packages."${prev.system}") rustybar; + }; + }; }