mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
94aefe48d2
Diff: https://github.com/figsoda/sagoin/compare/v0.2.1...v0.2.2 Changelog: https://github.com/figsoda/sagoin/blob/v0.2.2/CHANGELOG.md
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sagoin";
|
|
version = "0.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "figsoda";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-bhBC7Cblw8vmP4BalYv2DMRQWPK2AELb8Ia9PSeWcXE=";
|
|
};
|
|
|
|
cargoHash = "sha256-1XcI2LUo6xOs6bJDXKVDqMangH2dq2E6fNokuSDzpK0=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.CoreServices
|
|
];
|
|
|
|
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 Submit 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 ];
|
|
};
|
|
}
|