2022-08-24 16:59:27 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, makeWrapper, gnupg, bzip2, xz, graphviz, testers, aptly }:
|
2016-11-21 01:01:37 +00:00
|
|
|
|
2022-08-24 16:59:27 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "aptly";
|
|
|
|
version = "1.5.0";
|
2016-11-21 01:01:37 +00:00
|
|
|
|
2022-08-24 16:59:27 +00:00
|
|
|
src = fetchFromGitHub {
|
2019-02-20 12:11:53 +00:00
|
|
|
owner = "aptly-dev";
|
2016-11-21 01:01:37 +00:00
|
|
|
repo = "aptly";
|
2022-08-24 16:59:27 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-LqGOLXXaGfQfoj2r+aY9SdOKUDI9+22EsHKBhHMidyk=";
|
2016-11-21 01:01:37 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-6l3OFKFTtFWT68Ylav6woczBlMhD75C9ZoQ6OeLz0Cs=";
|
2016-11-21 01:01:37 +00:00
|
|
|
|
2020-04-27 00:10:26 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
2016-11-22 16:02:32 +00:00
|
|
|
|
2022-08-24 16:59:27 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
|
|
|
|
|
2016-11-21 01:01:37 +00:00
|
|
|
postInstall = ''
|
2022-08-24 16:59:27 +00:00
|
|
|
installShellCompletion --bash --name aptly completion.d/aptly
|
|
|
|
installShellCompletion --zsh --name _aptly completion.d/_aptly
|
2020-04-28 01:50:57 +00:00
|
|
|
wrapProgram "$out/bin/aptly" \
|
2021-01-15 09:19:50 +00:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ gnupg bzip2 xz graphviz ]}"
|
2016-11-21 01:01:37 +00:00
|
|
|
'';
|
|
|
|
|
2022-08-24 16:59:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = aptly;
|
|
|
|
command = "aptly version";
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.aptly.info";
|
2016-11-21 01:01:37 +00:00
|
|
|
description = "Debian repository management tool";
|
|
|
|
license = licenses.mit;
|
2022-08-24 16:59:49 +00:00
|
|
|
maintainers = with maintainers; [ montag451 ] ++ teams.bitnomial.members;
|
2022-08-24 16:59:27 +00:00
|
|
|
changelog =
|
|
|
|
"https://github.com/aptly-dev/aptly/releases/tag/v${version}";
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "aptly";
|
2016-11-21 01:01:37 +00:00
|
|
|
};
|
|
|
|
}
|