mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
a35874b41a
/usr/bin/env is not available in chroot builds. Invoke the python3 interpreter directly instead of trying to let env do it (which fails). Fixes this build error: $ nix-build -A meson ... /nix/store/HASH-stdenv/setup: ./install_meson.py: /usr/bin/env: bad interpreter: No such file or directory builder for ‘/nix/store/HASH-meson-0.26.0.drv’ failed with exit code 126
24 lines
649 B
Nix
24 lines
649 B
Nix
{ stdenv, fetchurl, ninja, python3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "meson-0.26.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/jpakkane/meson/archive/0.26.0.tar.gz";
|
|
sha256 = "1hmfn1bkxnwsnlhw6x9ryfcm4zwsf2w7h51cll1xrxg1rq08fvck";
|
|
};
|
|
|
|
buildInputs = [ ninja python3 ];
|
|
|
|
installPhase = ''
|
|
python3 ./install_meson.py --prefix=$out --destdir="$pkgdir/"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "http://mesonbuild.com";
|
|
description = "SCons-like build system that use python as a front-end language and Ninja as a building backend";
|
|
license = stdenv.lib.licenses.asl20;
|
|
maintainers = [ stdenv.lib.maintainers.mbe ];
|
|
};
|
|
}
|