feat: add flake support

This commit is contained in:
Louis Dalibard 2024-07-10 14:03:43 +02:00
parent 88edaabc0d
commit de73c66c26

View File

@ -7,7 +7,12 @@
};
outputs =
inputs@{ self, nixpkgs, utils, ... }:
inputs@{
self,
nixpkgs,
utils,
...
}:
utils.lib.eachSystem
[
"x86_64-linux"
@ -21,7 +26,9 @@
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.kon = with pkgs; (buildGoModule rec {
packages.kon =
with pkgs;
(buildGoModule rec {
pname = "kon";
version = "0.0.1";
@ -60,7 +67,9 @@
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath libs}
'';
});
packages.adam-gui = pkgs.symlinkJoin { name = "adam-gui";
packages.adam-gui = pkgs.symlinkJoin {
name = "adam-gui";
version = "0.0.1";
paths = with pkgs; [
(buildGoModule rec {
pname = "adam-gui";