mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
89 lines
1.6 KiB
Nix
89 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
callPackage,
|
|
writeShellApplication,
|
|
buildFHSEnv,
|
|
webkitgtk_4_1,
|
|
ffmpeg_8,
|
|
gtk4,
|
|
libepoxy,
|
|
wayland,
|
|
libxcb,
|
|
libxi,
|
|
pango,
|
|
atk,
|
|
cairo,
|
|
gdk-pixbuf,
|
|
protobufc,
|
|
cyrus_sasl,
|
|
pcsclite,
|
|
libfido2,
|
|
lz4,
|
|
}:
|
|
|
|
let
|
|
workspacesclient = callPackage ./workspacesclient.nix { };
|
|
|
|
# Source: https://github.com/jthomaschewski/pkgbuilds/pull/3
|
|
# Credits to https://github.com/rwolfson
|
|
custom_lsb_release = writeShellApplication {
|
|
name = "lsb_release";
|
|
|
|
text = ''
|
|
# "Fake" lsb_release script
|
|
# This only exists so that "lsb_release -r" will return the below string
|
|
# when placed in the $PATH
|
|
|
|
if [ "$#" -ne 1 ] || [ "$1" != "-r" ] ; then
|
|
echo "Expected only '-r' argument"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Release: 24.04"
|
|
'';
|
|
};
|
|
in
|
|
buildFHSEnv {
|
|
pname = "aws-workspaces";
|
|
inherit (workspacesclient) version;
|
|
|
|
runScript = lib.getExe workspacesclient;
|
|
|
|
includeClosures = true;
|
|
|
|
targetPkgs = pkgs: [
|
|
workspacesclient
|
|
custom_lsb_release
|
|
webkitgtk_4_1
|
|
gtk4
|
|
libepoxy
|
|
libxcb
|
|
libxi
|
|
ffmpeg_8
|
|
pango
|
|
atk
|
|
cairo
|
|
gdk-pixbuf
|
|
protobufc
|
|
cyrus_sasl
|
|
wayland
|
|
pcsclite
|
|
libfido2
|
|
lz4
|
|
];
|
|
|
|
extraBwrapArgs = [
|
|
# provide certificates where Debian-style OpenSSL can find them
|
|
"--symlink /etc/ssl/certs/ca-certificates.crt /etc/ssl/cert.pem"
|
|
];
|
|
|
|
# expected executable doesn't match the name of this package
|
|
extraInstallCommands = ''
|
|
mv $out/bin/aws-workspaces $out/bin/${workspacesclient.meta.mainProgram}
|
|
|
|
ln -s ${workspacesclient}/share $out/
|
|
'';
|
|
|
|
meta = workspacesclient.meta;
|
|
}
|