mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
gitopper: init at 0.0.16
This commit is contained in:
parent
0db241a291
commit
fa62a40582
54
pkgs/by-name/gi/gitopper/package.nix
Normal file
54
pkgs/by-name/gi/gitopper/package.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
git,
|
||||
makeWrapper,
|
||||
}:
|
||||
let
|
||||
pname = "gitopper";
|
||||
version = "0.0.16";
|
||||
in
|
||||
buildGoModule {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "miekg";
|
||||
repo = "gitopper";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-EAOC54VtGx6axfty5m8JOebcayINTy4cP4NBo5+ioLk=";
|
||||
};
|
||||
|
||||
ldflags = [ "-X main.Version=${version}" ];
|
||||
|
||||
vendorHash = "sha256-sxeN7nbNTGfD8ZgNQiEQdYl11rhOvPP8UrnYXs9Ljhc=";
|
||||
|
||||
nativeCheckInputs = [
|
||||
makeWrapper
|
||||
git
|
||||
];
|
||||
|
||||
checkFlags =
|
||||
let
|
||||
# Skip tests that does not works well inside an isolated environment
|
||||
skippedTests = [
|
||||
"TestInitialGitCheckout"
|
||||
"TestHash"
|
||||
];
|
||||
in
|
||||
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/gitopper \
|
||||
--suffix PATH : ${lib.makeBinPath [ git ]}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Gitops for non-Kubernetes folks";
|
||||
homepage = "https://github.com/miekg/gitopper/";
|
||||
license = lib.licenses.asl20;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
|
||||
mainProgram = "gitopper";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user