ustr: migrate to by-name
This commit is contained in:
parent
413c50ac7b
commit
31bfe498e7
3 changed files with 16 additions and 10 deletions
|
@ -1,4 +1,8 @@
|
||||||
{ lib, stdenv, fetchgit }:
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchgit,
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "ustr";
|
pname = "ustr";
|
||||||
|
@ -18,15 +22,19 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
|
|
||||||
# Fix detection of stdint.h
|
# Fix detection of stdint.h
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i 's,\(have_stdint_h\)=0,\1=1,g' Makefile
|
substituteInPlace Makefile \
|
||||||
sed -i 's,\(USTR_CONF_HAVE_STDINT_H\) 0,\1 1,g' ustr-import.in
|
--replace-fail "have_stdint_h=0" "have_stdint_h=1"
|
||||||
|
|
||||||
|
cat ustr-import.in | grep USTR_CONF
|
||||||
|
substituteInPlace ustr-import.in \
|
||||||
|
--replace-fail "USTR_CONF_HAVE_STDINT_H 0" "USTR_CONF_HAVE_STDINT_H 1"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
makeFlags = [
|
||||||
makeFlagsArray+=("prefix=$out")
|
"prefix=${placeholder "out"}"
|
||||||
makeFlagsArray+=("LDCONFIG=echo")
|
"LDCONFIG=echo"
|
||||||
makeFlagsArray+=("HIDE=")
|
"HIDE="
|
||||||
'';
|
];
|
||||||
|
|
||||||
# Remove debug libraries
|
# Remove debug libraries
|
||||||
postInstall = ''
|
postInstall = ''
|
|
@ -24804,8 +24804,6 @@ with pkgs;
|
||||||
|
|
||||||
unixODBCDrivers = recurseIntoAttrs (callPackages ../development/libraries/unixODBCDrivers { });
|
unixODBCDrivers = recurseIntoAttrs (callPackages ../development/libraries/unixODBCDrivers { });
|
||||||
|
|
||||||
ustr = callPackage ../development/libraries/ustr { };
|
|
||||||
|
|
||||||
usrsctp = callPackage ../development/libraries/usrsctp { };
|
usrsctp = callPackage ../development/libraries/usrsctp { };
|
||||||
|
|
||||||
usbredir = callPackage ../development/libraries/usbredir { };
|
usbredir = callPackage ../development/libraries/usbredir { };
|
||||||
|
|
Loading…
Reference in a new issue