2022-03-23 13:10:18 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
2023-10-30 14:33:03 +01:00
|
|
|
...
|
2022-03-23 13:10:18 +01:00
|
|
|
}: let
|
2023-10-30 14:33:03 +01:00
|
|
|
hashes = (builtins.import ../hashes.nix)."2i-emulator";
|
|
|
|
|
2023-10-30 00:31:58 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "klemens";
|
|
|
|
repo = "2i-emulator";
|
|
|
|
inherit (hashes) rev hash;
|
|
|
|
};
|
2022-03-23 13:10:18 +01:00
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
2023-10-30 00:31:58 +01:00
|
|
|
pname = "2i-emulator";
|
|
|
|
version = hashes.rev;
|
2021-06-26 21:09:22 +02:00
|
|
|
|
2023-10-30 00:31:58 +01:00
|
|
|
inherit src;
|
2021-06-26 21:09:22 +02:00
|
|
|
|
2023-10-30 00:31:58 +01:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = src + /Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"rustyline-1.0.0" = hashes."rustyline-1.0.0";
|
|
|
|
};
|
|
|
|
};
|
2021-06-26 21:09:22 +02:00
|
|
|
|
2022-03-23 13:10:18 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Cli emulator for the micro computer 2i used in the computer science hardware course at Leipzig University";
|
|
|
|
homepage = "https://github.com/klemens/2i-emulator";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [];
|
|
|
|
};
|
|
|
|
}
|