nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

xidel: refactor & fix eval

- Fix eval by removing reference to non-existent stdenv.glibc
- Simplify patchelf calls
- Set meta.platforms = linux

+4 -6
+4 -6
pkgs/tools/text/xidel/default.nix
··· 1 - { stdenv, fetchurl, dpkg, patchelf }: 1 + { stdenv, fetchurl, dpkg }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "xidel-${version}"; ··· 23 23 } 24 24 else throw "xidel is not supported on ${stdenv.system}"; 25 25 26 - buildInputs = [ dpkg patchelf ]; 26 + buildInputs = [ dpkg ]; 27 27 28 28 unpackPhase = '' 29 29 dpkg-deb -x ${src} ./ ··· 34 34 installPhase = '' 35 35 mkdir -p "$out/bin" 36 36 cp -a usr/* "$out/" 37 - interpreter="$(echo ${stdenv.glibc.out}/lib/ld-linux*)" 38 - patchelf --set-interpreter "$interpreter" "$out/bin/xidel" 39 - patchelf --set-rpath "${stdenv.lib.makeLibraryPath [stdenv.glibc]}" "$out/bin/xidel" 37 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$out/bin/xidel" 40 38 ''; 41 39 42 40 meta = with stdenv.lib; { ··· 43 45 # source contains no license info (AFAICS), but sourceforge says GPLv2 44 46 license = licenses.gpl2; 45 47 # more platforms will be supported when we switch to source build 46 - platforms = [ "i686-linux" "x86_64-linux" ]; 48 + platforms = platforms.linux; 47 49 maintainers = [ maintainers.bjornfor ]; 48 50 }; 49 51 }