2024-11-06 06:15:31 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitea,
|
|
|
|
callPackage,
|
|
|
|
nixosTests,
|
2024-03-04 11:18:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2024-12-03 13:41:08 +00:00
|
|
|
version = "0.14.3";
|
2024-03-04 11:18:31 +00:00
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
|
|
|
owner = "Klasse-Methode";
|
|
|
|
repo = "eintopf";
|
|
|
|
rev = "v${version}";
|
2024-12-03 13:41:08 +00:00
|
|
|
hash = "sha256-cWHWRxZFoArBB5PiuY6EQubKJKm3/79fwNhnABOtBrM=";
|
2024-03-04 11:18:31 +00:00
|
|
|
};
|
|
|
|
frontend = callPackage ./frontend.nix { inherit src version; };
|
|
|
|
in
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "eintopf";
|
|
|
|
inherit version src;
|
|
|
|
|
2024-11-06 06:13:58 +00:00
|
|
|
vendorHash = "sha256-ysAgyaewREI8TaMnKH+kh33QT6AN1eLhog35lv7CbVU=";
|
2024-03-04 11:18:31 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
"-X main.revision=${src.rev}"
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cp -R ${frontend}/. backstage/
|
|
|
|
'';
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# Disable test, requires running Docker daemon
|
|
|
|
rm cmd/eintopf/main_test.go
|
|
|
|
rm service/email/email_test.go
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) eintopf;
|
|
|
|
};
|
|
|
|
|
2024-11-06 06:15:31 +00:00
|
|
|
meta = {
|
2024-03-04 11:18:31 +00:00
|
|
|
description = "A calendar for Stuttgart, showing events, groups and places";
|
|
|
|
homepage = "https://codeberg.org/Klasse-Methode/eintopf";
|
2024-11-06 06:15:31 +00:00
|
|
|
license = lib.licenses.agpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ onny ];
|
|
|
|
platforms = lib.platforms.unix;
|
2024-03-04 11:18:31 +00:00
|
|
|
};
|
|
|
|
}
|