2023-02-26 18:59:26 +00:00
|
|
|
{
|
|
|
|
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
|
2023-03-03 19:44:51 +00:00
|
|
|
wayland-protocols
|
|
|
|
wayland-scanner
|
2023-02-26 18:59:26 +00:00
|
|
|
bluez
|
|
|
|
gtk3
|
|
|
|
gtk-layer-shell
|
|
|
|
libpulseaudio
|
2023-03-17 23:16:52 +00:00
|
|
|
stb
|
2023-02-26 18:59:26 +00:00
|
|
|
];
|
|
|
|
});
|
2023-03-13 20:00:08 +00:00
|
|
|
in {
|
2023-02-26 18:59:26 +00:00
|
|
|
defaultPackage = gbar;
|
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
gbar
|
|
|
|
];
|
|
|
|
};
|
2023-03-13 20:00:08 +00:00
|
|
|
homeManagerModules.default = import ./module.nix self;
|
2023-02-26 18:59:26 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|