mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
use rpmextract in some packages
This commit is contained in:
parent
4dba792a59
commit
307af9148b
@ -1,6 +1,6 @@
|
||||
source $stdenv/setup
|
||||
|
||||
rpm2cpio $src | cpio -idv
|
||||
rpmextract $src
|
||||
tar xfvj rhpl-*.tar.bz2
|
||||
rm rhpl-*.tar.bz2
|
||||
cd rhpl-*
|
||||
|
@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, rpm, cpio, python, wirelesstools, gettext}:
|
||||
{stdenv, fetchurl, rpmextract, python, wirelesstools, gettext}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "rhpl-0.218";
|
||||
@ -12,5 +12,5 @@ stdenv.mkDerivation {
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
||||
buildInputs = [ rpm cpio python wirelesstools gettext ];
|
||||
buildInputs = [ rpmextract python wirelesstools gettext ];
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, makeWrapper, requireFile, patchelf, rpm, cpio, libaio }:
|
||||
{ stdenv, makeWrapper, requireFile, patchelf, rpmextract, libaio }:
|
||||
|
||||
assert stdenv.system == "x86_64-linux";
|
||||
|
||||
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
unpackCmd = ''
|
||||
(mkdir -p "${name}" && cd "${name}" &&
|
||||
${rpm}/bin/rpm2cpio "$curSrc" | ${cpio}/bin/cpio -id)
|
||||
${rpmextract}/bin/rpmextract "$curSrc")
|
||||
'';
|
||||
|
||||
buildPhase = let
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, writeText, zlib, rpm, cpio, patchelf, which }:
|
||||
{ stdenv, fetchurl, writeText, zlib, rpmextract, patchelf, which }:
|
||||
|
||||
assert stdenv.isLinux;
|
||||
|
||||
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
mkdir -pv unpacked
|
||||
cd unpacked
|
||||
${rpm}/bin/rpm2cpio $src | ${cpio}/bin/cpio -imd
|
||||
${rpmextract}/bin/rpmextract $src
|
||||
|
||||
cp -r -t $out/bin usr/bin/*
|
||||
cp -r -t $out/share usr/share/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, rpm, cpio, ncurses, patchelf, makeWrapper, requireFile, unzip }:
|
||||
{ stdenv, rpmextract, ncurses, patchelf, makeWrapper, requireFile, unzip }:
|
||||
|
||||
assert stdenv.system == "x86_64-linux";
|
||||
|
||||
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "11jzvh25mlygflazd37gi05xv67im4rgq7sbs5nwgw3gxdh4xfjj";
|
||||
};
|
||||
|
||||
buildInputs = [rpm cpio ncurses unzip makeWrapper];
|
||||
buildInputs = [rpmextract ncurses unzip makeWrapper];
|
||||
libPath =
|
||||
stdenv.lib.makeLibraryPath
|
||||
[ stdenv.gcc.gcc stdenv.gcc.libc ncurses ];
|
||||
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p $out/bin
|
||||
cd $out
|
||||
unzip ${src}
|
||||
rpm2cpio linux/MegaCli-8.07.07-1.noarch.rpm | cpio -idmv
|
||||
rpmextract linux/MegaCli-8.07.07-1.noarch.rpm
|
||||
${patchelf}/bin/patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" --set-rpath ${libPath}:$out/opt/lsi/3rdpartylibs/x86_64:$out/opt/lsi/3rdpartylibs:${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib opt/MegaRAID/MegaCli/MegaCli64
|
||||
wrapProgram $out/opt/MegaRAID/MegaCli/MegaCli64 --set LD_LIBRARY_PATH $out/opt/lsi/3rdpartylibs/x86_64
|
||||
ln -s $out/opt/MegaRAID/MegaCli/MegaCli64 $out/bin/MegaCli64
|
||||
|
Loading…
Reference in New Issue
Block a user