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
38
pkgs/development/python-modules/mesonpep517/default.nix
Normal file
38
pkgs/development/python-modules/mesonpep517/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, meson
|
||||
, ninja
|
||||
, toml
|
||||
}:
|
||||
|
||||
# TODO: offer meson as a Python package so we have dist-info folder.
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mesonpep517";
|
||||
version = "0.2";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-Fyo7JfLqHJqbahEjVDt/0xJxOfVLqLn3xNJ4lSB7KIw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ toml ];
|
||||
|
||||
# postPatch = ''
|
||||
# # Meson tries to detect ninja as well, so we should patch meson as well.
|
||||
# substituteInPlace mesonpep517/buildapi.py \
|
||||
# --replace "'meson'" "'${meson}/bin/meson'" \
|
||||
# --replace "'ninja'" "'${ninja}/bin/ninja'"
|
||||
# '';
|
||||
|
||||
propagatedNativeBuildInputs = [ meson ninja ];
|
||||
|
||||
meta = {
|
||||
description = "Create pep517 compliant packages from the meson build system";
|
||||
homepage = "https://gitlab.com/thiblahute/mesonpep517";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ lib.maintainers.fridh ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue