uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
49
pkgs/development/tools/rust/maturin/default.nix
Normal file
49
pkgs/development/tools/rust/maturin/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ callPackage
|
||||
, lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, dbus
|
||||
, libiconv
|
||||
, Security
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "maturin";
|
||||
version = "0.12.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PyO3";
|
||||
repo = "maturin";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-FskCBviLl1yafPOlsp/IjaEOlGUuWLcGlxDrNA/qf8k=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-zakSQptKK/X/8MDJxRUHTDIGPh77cq5PrOmPEneD0YM=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isLinux [ dbus ]
|
||||
++ lib.optionals stdenv.isDarwin [ Security libiconv ];
|
||||
|
||||
# Requires network access, fails in sandbox.
|
||||
doCheck = false;
|
||||
|
||||
passthru.tests.pyo3 = callPackage ./pyo3-test {};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Build and publish Rust crates Python packages";
|
||||
longDescription = ''
|
||||
Build and publish Rust crates with PyO3, rust-cpython, and
|
||||
cffi bindings as well as Rust binaries as Python packages.
|
||||
|
||||
This project is meant as a zero-configuration replacement for
|
||||
setuptools-rust and Milksnake. It supports building wheels for
|
||||
Python and can upload them to PyPI.
|
||||
'';
|
||||
homepage = "https://github.com/PyO3/maturin";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue