artalk: rename mainProgram

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Moraxyc 2024-07-10 22:39:45 +08:00
parent 581e422c87
commit c592767c5c
No known key found for this signature in database

View File

@ -31,11 +31,18 @@ buildGoModule rec {
"-X github.com/ArtalkJS/Artalk/internal/config.Version=${version}"
"-X github.com/ArtalkJS/Artalk/internal/config.CommitHash=${version}"
];
preBuild = ''
tar -xzf ${web}
cp -r ./artalk_ui/* ./public
'';
postInstall = ''
# work around case insensitive file systems
mv $out/bin/Artalk $out/bin/artalk.tmp
mv $out/bin/artalk.tmp $out/bin/artalk
'';
passthru.tests = {
version = testers.testVersion { package = artalk; };
};
@ -45,6 +52,6 @@ buildGoModule rec {
homepage = "https://github.com/ArtalkJS/Artalk";
license = licenses.mit;
maintainers = with maintainers; [ moraxyc ];
mainProgram = "Artalk";
mainProgram = "artalk";
};
}