2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "eludris";
|
|
|
|
version = "0.3.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eludris";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-TVYgimkGUSITB3IaMlMd10PWomqyJRvONvJwiW85U4M=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoHash = "sha256-5B9D19jFh5+eNTjiho22CFsn51nmwLry08zSDWvs1OU=";
|
|
|
|
|
|
|
|
cargoBuildFlags = [ "-p eludris" ];
|
|
|
|
cargoTestFlags = [ "-p eludris" ];
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple CLI to help you with setting up and managing your Eludris instance";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "eludris";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/eludris/eludris/tree/main/cli";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ooliver1 ];
|
|
|
|
};
|
|
|
|
}
|