1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-19 19:34:24 +02:00

fix(nix): Fix nix run support

This commit is contained in:
yavko 2023-04-21 21:43:55 -07:00
parent 6fd69d657c
commit 7926bb07eb
No known key found for this signature in database
GPG key ID: F07D19A32407F857
2 changed files with 13 additions and 1 deletions

View file

@ -57,6 +57,18 @@
default = self.packages.${system}.ironbar; 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 devShells = genSystems (system: let
pkgs = pkgsFor system; pkgs = pkgsFor system;
rust = mkRustToolchain pkgs; rust = mkRustToolchain pkgs;

View file

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