Merge pull request #216746 from NasaGeek/supercronic

supercronic: init at 0.2.27
This commit is contained in:
Doron Behar 2023-11-11 17:21:45 +00:00 committed by GitHub
commit 5685c70937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 0 deletions

View File

@ -12478,6 +12478,11 @@
githubId = 6709831;
name = "Jake Hill";
};
nasageek = {
github = "NasaGeek";
githubId = 474937;
name = "Chris Roberts";
};
nasirhm = {
email = "nasirhussainm14@gmail.com";
github = "nasirhm";

View File

@ -0,0 +1,38 @@
{ lib
, buildGoModule
, fetchFromGitHub
, python3
, bash
, coreutils
}:
buildGoModule rec {
pname = "supercronic";
version = "0.2.27";
src = fetchFromGitHub {
owner = "aptible";
repo = pname;
rev = "v${version}";
hash = "sha256-sgKvE8Ze2qKPgdaAwN1sB0wX7k5VRx8+llkT54xXvrM=";
};
vendorHash = "sha256-j1iduvu+dKmhvPN8pe50fGQU5cC9N3gfoMh9gSQDbf8=";
excludedPackages = [ "cronexpr/cronexpr" ];
nativeCheckInputs = [ python3 bash coreutils ];
postConfigure = ''
# There are tests that set the shell to various paths
substituteInPlace cron/cron_test.go --replace /bin/sh ${bash}/bin/sh
substituteInPlace cron/cron_test.go --replace /bin/false ${coreutils}/bin/false
'';
meta = with lib; {
description = "Cron tool designed for use in containers";
homepage = "https://github.com/aptible/supercronic";
license = licenses.mit;
maintainers = with maintainers; [ nasageek ];
};
}

View File

@ -2055,6 +2055,8 @@ with pkgs;
steamtinkerlaunch = callPackage ../tools/games/steamtinkerlaunch { };
supercronic = callPackage ../tools/system/supercronic { };
supermin = callPackage ../tools/virtualization/supermin { };
sx-go = callPackage ../tools/security/sx-go { };