2025-01-15 06:00:12 +00:00
|
|
|
{ rustPlatform, lib, fetchFromGitHub, pkg-config, openssl, alsa-lib }:
|
2023-06-06 04:11:17 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "speki";
|
|
|
|
version = "0.4.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TBS1996";
|
|
|
|
repo = "speki";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-cvtMXtg2c9T4CaWAobagS9pW4pX4Q+nwdBvP+9A0er0=";
|
|
|
|
};
|
|
|
|
|
2025-01-15 06:00:12 +00:00
|
|
|
cargoLock = { lockFile = ./Cargo.lock; };
|
2023-06-06 04:11:17 +00:00
|
|
|
|
|
|
|
env.OPENSSL_NO_VENDOR = "1";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2024-10-30 11:32:47 +00:00
|
|
|
buildInputs = [ openssl alsa-lib ];
|
2023-06-06 04:11:17 +00:00
|
|
|
|
2023-07-18 02:06:26 +00:00
|
|
|
# Most of the tests require filesystem access with the home directory so
|
|
|
|
# we'll have to disable them for now.
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-06-06 04:11:17 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/TBS1996/speki/";
|
|
|
|
description = "Flashcard app on the terminal";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ foo-dogsquared ];
|
|
|
|
};
|
|
|
|
}
|