mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-16 12:38:39 +03:00
21 lines
463 B
Nix
21 lines
463 B
Nix
![]() |
{ stdenv, python, cmake }:
|
||
|
{ postInstall ? ""
|
||
|
, postFixup ? ""
|
||
|
, buildInputs ? []
|
||
|
, nativeBuildInputs ? []
|
||
|
, propagatedNativeBuildInputs ? []
|
||
|
, ...
|
||
|
}@args: stdenv.mkDerivation (args // {
|
||
|
|
||
|
nativeBuildInputs = [ python.pkgs.wrapPython ] ++ nativeBuildInputs;
|
||
|
propagatedNativeBuildInputs = [ cmake ] ++ propagatedNativeBuildInputs;
|
||
|
|
||
|
postInstall = ''
|
||
|
pushd $out
|
||
|
rm -f *setup.*sh
|
||
|
rm -f _setup_util.py
|
||
|
rm -f env.sh
|
||
|
popd
|
||
|
'' + postInstall;
|
||
|
})
|