sagoin: init at 0.1.0

This commit is contained in:
figsoda 2022-10-25 14:15:42 -04:00
parent be7042a040
commit b62ef86559
2 changed files with 44 additions and 0 deletions

@ -0,0 +1,42 @@
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "sagoin";
version = "0.1.0";
src = fetchFromGitHub {
owner = "figsoda";
repo = pname;
rev = "v${version}";
sha256 = "0cp3sdck48kz7ssv9q0glz1m0awxis2n3lw8f8kvqm42zxa50ixm";
};
cargoSha256 = "sha256-hPj1sj64JoIGEoHMIm2bE+G+ivokckvChhrxNoaUTo8=";
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
postInstall = ''
installManPage artifacts/sagoin.1
installShellCompletion artifacts/sagoin.{bash,fish} --zsh artifacts/_sagoin
'';
GEN_ARTIFACTS = "artifacts";
meta = with lib; {
description = "A command-line submission tool for the UMD CS Submission Server";
homepage = "https://github.com/figsoda/sagoin";
changelog = "https://github.com/figsoda/sagoin/blob/v${version}/CHANGELOG.md";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ figsoda ];
};
}

@ -11075,6 +11075,8 @@ with pkgs;
safeeyes = with python3.pkgs; toPythonApplication safeeyes;
sagoin = callPackage ../tools/misc/sagoin { };
sahel-fonts = callPackage ../data/fonts/sahel-fonts { };
saldl = callPackage ../tools/networking/saldl { };