2c3575d7fe
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/parity-ui/versions. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/2aph1kzcjppfld8ynp0ks7r4w6ghh1ir-parity-ui-0.2.5/bin/parity-ui had a zero exit code or showed the expected version - 0 of 1 passed binary check by having a zero exit code. - 0 of 1 passed binary check by having the new version present in output. - found 0.2.5 with grep in /nix/store/2aph1kzcjppfld8ynp0ks7r4w6ghh1ir-parity-ui-0.2.5 - directory tree listing: https://gist.github.com/c69e2d05d926decf9c0435e7ed94fab9 - du listing: https://gist.github.com/8a81380e0a3c16f2804599e811b3c336
51 lines
1.5 KiB
Nix
51 lines
1.5 KiB
Nix
{ stdenv, pkgs, fetchurl, lib, makeWrapper, nodePackages }:
|
|
|
|
let
|
|
|
|
uiEnv = pkgs.callPackage ./env.nix { };
|
|
|
|
in stdenv.mkDerivation rec {
|
|
name = "parity-ui-${version}";
|
|
version = "0.2.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/parity-js/shell/releases/download/v${version}/parity-ui_${version}_amd64.deb";
|
|
sha256 = "1jk7ac6qqxs47hf16vhr94ix4wf51qzpm55q8h6wsx1lrgy1y3g6";
|
|
name = "${name}.deb";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper nodePackages.asar ];
|
|
|
|
buildCommand = ''
|
|
mkdir -p $out/usr/
|
|
ar p $src data.tar.xz | tar -C $out -xJ .
|
|
substituteInPlace $out/usr/share/applications/parity-ui.desktop \
|
|
--replace "/opt/Parity UI" $out/bin
|
|
mv $out/usr/* $out/
|
|
mv "$out/opt/Parity UI" $out/share/parity-ui
|
|
rm -r $out/usr/
|
|
rm -r $out/opt/
|
|
|
|
fixupPhase
|
|
|
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
--set-rpath "${uiEnv.libPath}:$out/share/parity-ui" \
|
|
$out/share/parity-ui/parity-ui
|
|
|
|
find $out/share/parity-ui -name "*.node" -exec patchelf --set-rpath "${uiEnv.libPath}:$out/share/parity-ui" {} \;
|
|
|
|
paxmark m $out/share/parity-ui/parity-ui
|
|
|
|
mkdir -p $out/bin
|
|
ln -s $out/share/parity-ui/parity-ui $out/bin/parity-ui
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "UI for Parity. Fast, light, robust Ethereum implementation";
|
|
homepage = http://parity.io;
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.sorpaas ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|