mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
35 lines
693 B
Nix
35 lines
693 B
Nix
|
{ rustPlatform
|
||
|
, lib
|
||
|
, fetchFromGitHub
|
||
|
, pkg-config
|
||
|
, openssl
|
||
|
, alsaLib
|
||
|
}:
|
||
|
|
||
|
rustPlatform.buildRustPackage rec {
|
||
|
pname = "speki";
|
||
|
version = "0.4.8";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "TBS1996";
|
||
|
repo = "speki";
|
||
|
rev = "v${version}";
|
||
|
hash = "sha256-cvtMXtg2c9T4CaWAobagS9pW4pX4Q+nwdBvP+9A0er0=";
|
||
|
};
|
||
|
|
||
|
cargoLock = {
|
||
|
lockFile = ./Cargo.lock;
|
||
|
};
|
||
|
|
||
|
env.OPENSSL_NO_VENDOR = "1";
|
||
|
nativeBuildInputs = [ pkg-config ];
|
||
|
buildInputs = [ openssl alsaLib ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
homepage = "https://github.com/TBS1996/speki/";
|
||
|
description = "Flashcard app on the terminal";
|
||
|
license = licenses.gpl2;
|
||
|
maintainers = with maintainers; [ foo-dogsquared ];
|
||
|
};
|
||
|
}
|