fix(nix): Fix nix run support

This commit is contained in:
yavko
2023-04-21 21:43:55 -07:00
parent 6fd69d657c
commit 7926bb07eb
2 changed files with 13 additions and 1 deletions

View File

@@ -57,6 +57,18 @@
default = self.packages.${system}.ironbar;
}
);
apps = genSystems (system: let
pkgs = pkgsFor system;
in {
default = {
type = "app";
program = "${pkgs.ironbar}/bin/ironbar";
};
ironbar = {
type = "app";
program = "${pkgs.ironbar}/bin/ironbar";
};
});
devShells = genSystems (system: let
pkgs = pkgsFor system;
rust = mkRustToolchain pkgs;

View File

@@ -31,6 +31,6 @@ rustPlatform.buildRustPackage {
description = "Customisable gtk-layer-shell wlroots/sway bar written in rust.";
license = licenses.mit;
platforms = platforms.linux;
mainProgram = "Hyprland";
mainProgram = "ironbar";
};
}