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