From b62ef86559d949e619cbf1771bf1489736107135 Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 25 Oct 2022 14:15:42 -0400 Subject: [PATCH] sagoin: init at 0.1.0 --- pkgs/tools/misc/sagoin/default.nix | 42 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 44 insertions(+) create mode 100644 pkgs/tools/misc/sagoin/default.nix diff --git a/pkgs/tools/misc/sagoin/default.nix b/pkgs/tools/misc/sagoin/default.nix new file mode 100644 index 000000000000..7c6fb92b9d38 --- /dev/null +++ b/pkgs/tools/misc/sagoin/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b089dd294363..d1c11926407e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };