mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
treewide: amend hacks of removing $(pwd)
The strip phase is using $TMPDIR now, so it would fail with: mktemp: failed to create file via template 'striperr.XXXXXX': No such file or directory
This commit is contained in:
parent
630052f3e6
commit
3af97fc9ee
@ -45,8 +45,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
# Hack to avoid TMPDIR in RPATHs.
|
# remove forbidden references to $TMPDIR
|
||||||
preFixup = ''rm -rf "$(pwd)" '';
|
preFixup = lib.optionalString stdenv.isLinux ''
|
||||||
|
for f in "$out"/bin/*; do
|
||||||
|
if isELF "$f"; then
|
||||||
|
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$f"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Efficient Scheme compiler";
|
description = "Efficient Scheme compiler";
|
||||||
|
@ -14,9 +14,9 @@ mkDerivation rec {
|
|||||||
propagatedBuildInputs = [ glib libaccounts-glib ];
|
propagatedBuildInputs = [ glib libaccounts-glib ];
|
||||||
nativeBuildInputs = [ doxygen pkg-config qmake ];
|
nativeBuildInputs = [ doxygen pkg-config qmake ];
|
||||||
|
|
||||||
# remove forbidden reference to $TMPDIR
|
# remove forbidden references to $TMPDIR
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
patchelf --shrink-rpath --allowed-rpath-prefixes "/nix/store" "$out"/bin/*
|
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out"/bin/*
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -13,8 +13,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
# Hack to avoid TMPDIR in RPATHs.
|
# remove forbidden references to $TMPDIR
|
||||||
preFixup = ''rm -rf "$(pwd)" '';
|
preFixup = lib.optionalString stdenv.isLinux ''
|
||||||
|
for f in "$out"/bin/*; do
|
||||||
|
if isELF "$f"; then
|
||||||
|
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$f"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Library reading dwg files";
|
description = "Library reading dwg files";
|
||||||
|
@ -20,8 +20,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ libusb-compat-0_1 ];
|
propagatedBuildInputs = [ libusb-compat-0_1 ];
|
||||||
|
|
||||||
# Hack to avoid TMPDIR in RPATHs.
|
|
||||||
preFixup = ''rm -rf "$(pwd)" '';
|
|
||||||
configureFlags = lib.optional (!stdenv.isDarwin) "--with-async-mode";
|
configureFlags = lib.optional (!stdenv.isDarwin) "--with-async-mode";
|
||||||
|
|
||||||
# allow async mode. from ubuntu. see:
|
# allow async mode. from ubuntu. see:
|
||||||
@ -31,6 +29,15 @@ stdenv.mkDerivation rec {
|
|||||||
--replace "ifdef USB_CLASS_PTP" "if 0"
|
--replace "ifdef USB_CLASS_PTP" "if 0"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# remove forbidden references to $TMPDIR
|
||||||
|
preFixup = lib.optionalString stdenv.isLinux ''
|
||||||
|
for f in "$out"/bin/*; do
|
||||||
|
if isELF "$f"; then
|
||||||
|
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$f"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A library to talk to FTDI chips using libusb";
|
description = "A library to talk to FTDI chips using libusb";
|
||||||
homepage = "https://www.intra2net.com/en/developer/libftdi/";
|
homepage = "https://www.intra2net.com/en/developer/libftdi/";
|
||||||
|
@ -39,8 +39,14 @@ stdenv.mkDerivation rec {
|
|||||||
--replace "/usr/bin/file" "${file}/bin/file"
|
--replace "/usr/bin/file" "${file}/bin/file"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Hack to avoid TMPDIR in RPATHs.
|
# remove forbidden references to $TMPDIR
|
||||||
preFixup = ''rm -rf "$(pwd)" '';
|
preFixup = lib.optionalString stdenv.isLinux ''
|
||||||
|
for f in "$out"/bin/*; do
|
||||||
|
if isELF "$f"; then
|
||||||
|
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$f"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Free touch typing tutor program";
|
description = "Free touch typing tutor program";
|
||||||
|
@ -13,8 +13,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
|
||||||
# Hack to avoid TMPDIR in RPATHs.
|
# remove forbidden references to $TMPDIR
|
||||||
preFixup = ''rm -rf "$(pwd)" '';
|
preFixup = lib.optionalString stdenv.isLinux ''
|
||||||
|
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out"/bin/*
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A program for calculating fuzzy hashes";
|
description = "A program for calculating fuzzy hashes";
|
||||||
|
Loading…
Reference in New Issue
Block a user