gBar/flake.nix
Edvin Källström 3b6bafe91a
Add a home-manager nix module (#11)
Add a home-manager module to simplify installation and config management
on nix systems. This greatly reduces the setup time and
makes it integrate better with other programs on nix, mainly Hyprland
which this module is based on.
2023-03-13 21:00:08 +01:00

44 lines
908 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
];
});
in {
defaultPackage = gbar;
devShell = pkgs.mkShell {
buildInputs = [
gbar
];
};
homeManagerModules.default = import ./module.nix self;
}
);
}