mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
artalk: rename mainProgram
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
581e422c87
commit
c592767c5c
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue