mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-14 03:28:39 +03:00
20 lines
463 B
Nix
20 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;
|
|
})
|