about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/virtualization/uefi-run/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/virtualization/uefi-run/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/virtualization/uefi-run/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/virtualization/uefi-run/default.nix b/nixpkgs/pkgs/tools/virtualization/uefi-run/default.nix
new file mode 100644
index 000000000000..9d954d9ed03d
--- /dev/null
+++ b/nixpkgs/pkgs/tools/virtualization/uefi-run/default.nix
@@ -0,0 +1,26 @@
+{ lib
+, fetchFromGitHub
+, rustPlatform
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "uefi-run";
+  version = "0.6.1";
+
+  src = fetchFromGitHub {
+    owner = "Richard-W";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-tR547osqw18dCMHJLqJ8AQBelbv8yCl7rAqslu+vnDQ=";
+  };
+
+  cargoHash = "sha256-s1Kbc3JHoYy0UJwNfSunIdQ3xHjlQaut/Cb0JSYyB9g=";
+
+  meta = with lib; {
+    description = "Directly run UEFI applications in qemu";
+    homepage = "https://github.com/Richard-W/uefi-run";
+    license = licenses.mit;
+    maintainers = with maintainers; [ ];
+    mainProgram = "uefi-run";
+  };
+}