lol
1{ lib, python3Packages }:
2python3Packages.buildPythonApplication rec {
3 version = "0.41.2";
4 pname = "meson";
5 name = "${pname}-${version}";
6
7 src = python3Packages.fetchPypi {
8 inherit pname version;
9 sha256 = "0p69hir68ar3nzrjn0zjsnyzq181b0kq6arrcmxqpzl7g5qhf5xd";
10 };
11
12 postFixup = ''
13 pushd $out/bin
14 # undo shell wrapper as meson tools are called with python
15 for i in *; do
16 mv ".$i-wrapped" "$i"
17 done
18 popd
19 '';
20
21 setupHook = ./setup-hook.sh;
22
23 meta = with lib; {
24 homepage = http://mesonbuild.com;
25 description = "SCons-like build system that use python as a front-end language and Ninja as a building backend";
26 license = licenses.asl20;
27 maintainers = with maintainers; [ mbe rasendubi ];
28 platforms = platforms.all;
29 };
30}