This commit is contained in:
icefox 2025-12-26 12:14:34 -03:00
parent af358f9326
commit 1d2ecf2723
No known key found for this signature in database
2 changed files with 15 additions and 7 deletions

View file

@ -6,9 +6,9 @@ buildGoModule {
src = ./.; src = ./.;
vendorHash = null; vendorHash = "sha256-A1Gf5F5UD6jNUAIuXvW5WmoPsVd5T73zlbJjqbMSuLw=";
CGO_ENABLED = 1; env.CGO_ENABLED = 1;
meta = with lib; { meta = with lib; {
description = "Henna gallery server"; description = "Henna gallery server";

View file

@ -6,10 +6,17 @@
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = { self, nixpkgs, flake-utils }: outputs =
{
self,
nixpkgs,
flake-utils,
}:
{ {
nixosModules.default = import ./module.nix; nixosModules.default = import ./module.nix;
} // flake-utils.lib.eachDefaultSystem (system: }
// flake-utils.lib.eachDefaultSystem (
system:
let let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in in
@ -18,11 +25,11 @@
pname = "henna"; pname = "henna";
version = "0.1.0"; version = "0.1.0";
src = ./.; src = ./.;
vendorHash = null; # Update after running go mod tidy vendorHash = null;
buildInputs = [ pkgs.sqlite ]; buildInputs = [ pkgs.sqlite ];
CGO_ENABLED = 1; env.CGO_ENABLED = 1;
}; };
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
@ -32,5 +39,6 @@
gcc gcc
]; ];
}; };
}); }
);
} }