mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-21 18:52:49 +00:00
097c3d97e7
Since 37b0896
stb_image isn't used anymore and recently the nix CI also
broke because of the hacky way the include directory is determined. This
is now fixed. One side effect of this is, that gBar no longer needs to
be cloned recursively.
46 lines
953 B
Nix
46 lines
953 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachSystem ["x86_64-linux"] (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
|
|
gbar = (with pkgs; stdenv.mkDerivation {
|
|
|
|
name = "gbar";
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
meson
|
|
cmake
|
|
ninja
|
|
];
|
|
buildInputs = [
|
|
wayland
|
|
wayland-protocols
|
|
wayland-scanner
|
|
bluez
|
|
gtk3
|
|
gtk-layer-shell
|
|
libpulseaudio
|
|
libdbusmenu-gtk3
|
|
libsass
|
|
];
|
|
});
|
|
in {
|
|
defaultPackage = gbar;
|
|
devShell = pkgs.mkShell {
|
|
buildInputs = [
|
|
gbar
|
|
];
|
|
};
|
|
homeManagerModules.default = import ./module.nix self;
|
|
}
|
|
);
|
|
}
|