git.iko.soy/typeable/nixpkgs
on master help sign in
use rpmextract in some packages
307af91Nikolay Amiantov
pkgs/development/python-modules/rhpl/builder.sh+1−1
@@ -1,6 +1,6 @@
1source $stdenv/setup
1source $stdenv/setup
2
2
3−rpm2cpio $src | cpio -idv
3+rpmextract $src
4tar xfvj rhpl-*.tar.bz2
4tar xfvj rhpl-*.tar.bz2
5rm rhpl-*.tar.bz2
5rm rhpl-*.tar.bz2
6cd rhpl-*
6cd rhpl-*
pkgs/development/python-modules/rhpl/default.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, rpm, cpio, python, wirelesstools, gettext}:
1+{stdenv, fetchurl, rpmextract, python, wirelesstools, gettext}:
2
2
3stdenv.mkDerivation {
3stdenv.mkDerivation {
4 name = "rhpl-0.218";
4 name = "rhpl-0.218";
@@ -12,5 +12,5 @@ stdenv.mkDerivation {
12
12
13 builder = ./builder.sh;
13 builder = ./builder.sh;
14
14
15− buildInputs = [ rpm cpio python wirelesstools gettext ];
15+ buildInputs = [ rpmextract python wirelesstools gettext ];
16}
16}
pkgs/servers/sql/oracle-xe/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, makeWrapper, requireFile, patchelf, rpm, cpio, libaio }:
1+{ stdenv, makeWrapper, requireFile, patchelf, rpmextract, libaio }:
2
2
3assert stdenv.system == "x86_64-linux";
3assert stdenv.system == "x86_64-linux";
4
4
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
20
20
21 unpackCmd = ''
21 unpackCmd = ''
22 (mkdir -p "${name}" && cd "${name}" &&
22 (mkdir -p "${name}" && cd "${name}" &&
23− ${rpm}/bin/rpm2cpio "$curSrc" | ${cpio}/bin/cpio -id)
23+ ${rpmextract}/bin/rpmextract "$curSrc")
24 '';
24 '';
25
25
26 buildPhase = let
26 buildPhase = let
pkgs/tools/filesystems/yandex-disk/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, writeText, zlib, rpm, cpio, patchelf, which }:
1+{ stdenv, fetchurl, writeText, zlib, rpmextract, patchelf, which }:
2
2
3assert stdenv.isLinux;
3assert stdenv.isLinux;
4
4
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
31
31
32 mkdir -pv unpacked
32 mkdir -pv unpacked
33 cd unpacked
33 cd unpacked
34− ${rpm}/bin/rpm2cpio $src | ${cpio}/bin/cpio -imd
34+ ${rpmextract}/bin/rpmextract $src
35
35
36 cp -r -t $out/bin usr/bin/*
36 cp -r -t $out/bin usr/bin/*
37 cp -r -t $out/share usr/share/*
37 cp -r -t $out/share usr/share/*
pkgs/tools/misc/megacli/default.nix+3−3
@@ -1,4 +1,4 @@
1−{ stdenv, rpm, cpio, ncurses, patchelf, makeWrapper, requireFile, unzip }:
1+{ stdenv, rpmextract, ncurses, patchelf, makeWrapper, requireFile, unzip }:
2
2
3assert stdenv.system == "x86_64-linux";
3assert stdenv.system == "x86_64-linux";
4
4
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
12 sha256 = "11jzvh25mlygflazd37gi05xv67im4rgq7sbs5nwgw3gxdh4xfjj";
12 sha256 = "11jzvh25mlygflazd37gi05xv67im4rgq7sbs5nwgw3gxdh4xfjj";
13 };
13 };
14
14
15− buildInputs = [rpm cpio ncurses unzip makeWrapper];
15+ buildInputs = [rpmextract ncurses unzip makeWrapper];
16 libPath =
16 libPath =
17 stdenv.lib.makeLibraryPath
17 stdenv.lib.makeLibraryPath
18 [ stdenv.gcc.gcc stdenv.gcc.libc ncurses ];
18 [ stdenv.gcc.gcc stdenv.gcc.libc ncurses ];
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
21 mkdir -p $out/bin
21 mkdir -p $out/bin
22 cd $out
22 cd $out
23 unzip ${src}
23 unzip ${src}
24− rpm2cpio linux/MegaCli-8.07.07-1.noarch.rpm | cpio -idmv
24+ rpmextract linux/MegaCli-8.07.07-1.noarch.rpm
25 ${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
25 ${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
26 wrapProgram $out/opt/MegaRAID/MegaCli/MegaCli64 --set LD_LIBRARY_PATH $out/opt/lsi/3rdpartylibs/x86_64
26 wrapProgram $out/opt/MegaRAID/MegaCli/MegaCli64 --set LD_LIBRARY_PATH $out/opt/lsi/3rdpartylibs/x86_64
27 ln -s $out/opt/MegaRAID/MegaCli/MegaCli64 $out/bin/MegaCli64
27 ln -s $out/opt/MegaRAID/MegaCli/MegaCli64 $out/bin/MegaCli64