2022-03-23 13:10:18 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
|
|
|
}: let
|
|
|
|
lock = builtins.fromJSON (builtins.readFile ../flake.lock);
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = lock.nodes."2i-emulator".original.repo;
|
|
|
|
version = lock.nodes."2i-emulator".locked.rev;
|
2021-06-26 21:09:22 +02:00
|
|
|
|
2022-03-23 13:10:18 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = lock.nodes."2i-emulator".locked.owner;
|
|
|
|
repo = lock.nodes."2i-emulator".locked.repo;
|
|
|
|
rev = lock.nodes."2i-emulator".locked.rev;
|
|
|
|
sha256 = lock.nodes."2i-emulator".locked.narHash;
|
|
|
|
};
|
2021-06-26 21:09:22 +02:00
|
|
|
|
2022-03-23 13:10:18 +01:00
|
|
|
cargoSha256 = "sha256-FUtOLYFPRFkUAXixcUzMfDmKju/GN6r/KQYqKCK8vBk=";
|
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 = [];
|
|
|
|
};
|
|
|
|
}
|