summaryrefslogtreecommitdiff
path: root/pkgs/iced-x86/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/iced-x86/default.nix')
-rw-r--r--pkgs/iced-x86/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/iced-x86/default.nix b/pkgs/iced-x86/default.nix
new file mode 100644
index 0000000..ac1ad06
--- /dev/null
+++ b/pkgs/iced-x86/default.nix
@@ -0,0 +1,36 @@
+{
+ buildPythonPackage,
+ cargo,
+ lib,
+ fetchPypi,
+ setuptools-rust,
+ rustc,
+ rustPlatform,
+}: let
+ pname = "iced-x86";
+ version = "1.19.0";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "sha256-YljWeJNOk7eF1iPymarxNLj3rLnXJGC/Qsajb9YWXnE=";
+ };
+in
+ buildPythonPackage {
+ inherit pname src version;
+
+ nativeBuildInputs = [
+ cargo
+ rustc
+ rustPlatform.cargoSetupHook
+ setuptools-rust
+ ];
+
+ # Esta gente no le puso Cargo.lock
+ cargoDeps = rustPlatform.importCargoLock {
+ lockFile = ./Cargo.lock;
+ };
+
+ patches = [
+ ./0001-add-Cargo.lock.patch
+ ];
+ }