feat: add flake support

This commit is contained in:
Louis Dalibard 2024-07-10 14:51:39 +02:00
parent cf23eb92bf
commit bd63b0983c

View File

@ -6,29 +6,34 @@
};
outputs =
inputs@{
self,
nixpkgs,
...
}:
inputs@{ self, nixpkgs, ... }:
let
adam-gui-libs = with pkgs; [
libGL pkg-config xorg.libX11.dev xorg.libXcursor xorg.libXi xorg.libXinerama xorg.libXrandr xorg.libXxf86vm
];
kon-libs = with pkgs; [
libGL
pkg-config
xorg.libX11.dev
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXrandr
xorg.libXxf86vm
];
kon-libs = with pkgs; [ pkg-config ];
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [ self.overlays.default ];
};
in {
nixosModules.default = ({config, pkgs, ...}: { nixpkgs.overlays = [ self.overlays.default ]; });
in
{
nixosModules.default = (
{ config, pkgs, ... }:
{
nixpkgs.overlays = [ self.overlays.default ];
}
);
packages.x86_64-linux = rec {
inherit (pkgs)
kon
adam-gui;
inherit (pkgs) kon adam-gui;
};
overlays.default = final: prev: {
kon =
@ -40,7 +45,7 @@
buildInputs = [
gcc
go
] ++ adam-gui-libs;
] ++ kon-libs;
nativeBuildInputs = with pkgs; [
pkg-config
@ -83,7 +88,7 @@
buildInputs = [
gcc
go
] ++ kon-libs;
] ++ adam-gui-libs;
nativeBuildInputs = with pkgs; [
pkg-config