diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-06-12 16:58:59 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-06-12 16:58:59 -0600 |
| commit | c23b0042feb2778262b911c5e3c752e2fdd627a1 (patch) | |
| tree | 7f13634dad6f94f2426128cc126541cb636311f8 /pkgs/iced-x86/default.nix | |
| parent | 07bf05a7869c88c27912833c1db942f8fc849f4d (diff) | |
pkgs: add iced-x86
Diffstat (limited to 'pkgs/iced-x86/default.nix')
| -rw-r--r-- | pkgs/iced-x86/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/iced-x86/default.nix b/pkgs/iced-x86/default.nix new file mode 100644 index 0000000..6f7652d --- /dev/null +++ b/pkgs/iced-x86/default.nix @@ -0,0 +1,29 @@ +{ 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 + ]; +} |
