{ lib, fetchFromGitHub, rustPlatform, ... }: let hashes = (builtins.import ../hashes.nix)."2i-emulator"; src = fetchFromGitHub { owner = "klemens"; repo = "2i-emulator"; inherit (hashes) rev hash; }; in rustPlatform.buildRustPackage { pname = "2i-emulator"; version = hashes.rev; inherit src; cargoLock = { lockFile = src + /Cargo.lock; outputHashes = { "rustyline-1.0.0" = hashes."rustyline-1.0.0"; }; }; 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 = []; }; }