Merge pull request #103939 from rmcgibbo/nice-dcv
nice-dcv-client: init at 2020.2.1737-1
This commit is contained in:
commit
6d86fa0085
3 changed files with 95 additions and 0 deletions
|
@ -7509,6 +7509,12 @@
|
|||
githubId = 13752145;
|
||||
name = "Richard Lupton";
|
||||
};
|
||||
rmcgibbo = {
|
||||
email = "rmcgibbo@gmail.com";
|
||||
github = "rmcgibbo";
|
||||
githubId = 641278;
|
||||
name = "Robert T. McGibbon";
|
||||
};
|
||||
rnhmjoj = {
|
||||
email = "rnhmjoj@inventati.org";
|
||||
github = "rnhmjoj";
|
||||
|
|
|
@ -0,0 +1,87 @@
|
|||
{ stdenv
|
||||
, fetchurl
|
||||
, glib
|
||||
, libX11
|
||||
, gst_all_1
|
||||
, sqlite
|
||||
, epoxy
|
||||
, pango
|
||||
, cairo
|
||||
, gdk-pixbuf
|
||||
, e2fsprogs
|
||||
, libkrb5
|
||||
, libva
|
||||
, openssl
|
||||
, pcsclite
|
||||
, gtk3
|
||||
, libselinux
|
||||
, libxml2
|
||||
, python3Packages
|
||||
, cpio
|
||||
, autoPatchelfHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nice-dcv-client";
|
||||
version = "2020.2.1737-1";
|
||||
|
||||
src =
|
||||
fetchurl {
|
||||
url = "https://d1uj6qtbmh3dt5.cloudfront.net/2020.2/Clients/nice-dcv-viewer-${version}.el8.x86_64.rpm";
|
||||
sha256 = "sha256-SUpfHd/Btc07cfjc3zx5I5BiNatr/c4E2/mfJuU4R1E=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook python3Packages.rpm ];
|
||||
unpackPhase = ''
|
||||
rpm2cpio $src | ${cpio}/bin/cpio -idm
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
libselinux
|
||||
libkrb5
|
||||
libxml2
|
||||
libva
|
||||
e2fsprogs
|
||||
libX11
|
||||
openssl
|
||||
pcsclite
|
||||
gtk3
|
||||
cairo
|
||||
epoxy
|
||||
pango
|
||||
gdk-pixbuf
|
||||
gst_all_1.gstreamer
|
||||
gst_all_1.gst-plugins-base
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin/
|
||||
mkdir -p $out/lib64/
|
||||
|
||||
mv usr/bin/dcvviewer $out/bin/dcvviewer
|
||||
mv usr/lib64/* $out/lib64/
|
||||
|
||||
mkdir -p $out/libexec/dcvviewer
|
||||
mv usr/libexec/dcvviewer/dcvviewer $out/libexec/dcvviewer/dcvviewer
|
||||
patchelf \
|
||||
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
|
||||
$out/libexec/dcvviewer/dcvviewer
|
||||
|
||||
# Fix the wrapper script to have the right basedir.
|
||||
sed -i "s#basedir=/usr#basedir=$out#" $out/bin/dcvviewer
|
||||
|
||||
mv usr/share $out/
|
||||
${glib.dev}/bin/glib-compile-schemas $out/share/glib-2.0/schemas
|
||||
|
||||
# broken symlink, seems to give a warning message if i don't delete it
|
||||
rm $out/lib64/dcvviewer/gio/modules/libdconfsettings.so
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "High-performance remote display protocol";
|
||||
homepage = "https://aws.amazon.com/hpc/dcv/";
|
||||
license = licenses.unfree;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ rmcgibbo ];
|
||||
};
|
||||
}
|
|
@ -22887,6 +22887,8 @@ in
|
|||
geoip = geoipWithDatabase;
|
||||
};
|
||||
|
||||
nice-dcv-client = callPackage ../applications/networking/remote/nice-dcv-client { };
|
||||
|
||||
nixos-shell = callPackage ../tools/virtualization/nixos-shell {};
|
||||
|
||||
noaa-apt = callPackage ../applications/radio/noaa-apt { };
|
||||
|
|
Loading…
Reference in a new issue