1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/by-name/ei/eintopf/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.1 KiB
Nix
Raw Normal View History

2024-03-04 11:18:31 +00:00
{ lib
, buildGoModule
, fetchFromGitea
, callPackage
, nixosTests
}:
let
2024-08-23 16:28:32 +01:00
version = "0.14.1";
2024-03-04 11:18:31 +00:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "Klasse-Methode";
repo = "eintopf";
rev = "v${version}";
2024-08-23 16:28:32 +01:00
hash = "sha256-+QEAUyAqFLcc3bhGI3v4FxhDt+3P6vBnxWsFPp56lfg=";
2024-03-04 11:18:31 +00:00
};
frontend = callPackage ./frontend.nix { inherit src version; };
in
buildGoModule rec {
pname = "eintopf";
inherit version src;
2024-08-23 16:28:32 +01:00
vendorHash = "sha256-ODVCZWxkPWW8ZlONiVXwVQalsLIUl9x512JimLAUm6U=";
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;
};
meta = with lib; {
description = "A calendar for Stuttgart, showing events, groups and places";
homepage = "https://codeberg.org/Klasse-Methode/eintopf";
2024-08-23 16:28:32 +01:00
license = licenses.agpl3Only;
2024-03-04 11:18:31 +00:00
maintainers = with maintainers; [ onny ];
platforms = platforms.unix;
};
}