Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
74 lines
1.4 KiB
Nix
74 lines
1.4 KiB
Nix
{
|
|
callPackage,
|
|
writeShellApplication,
|
|
buildFHSEnv,
|
|
webkitgtk_4_1,
|
|
gtk3,
|
|
pango,
|
|
atk,
|
|
cairo,
|
|
gdk-pixbuf,
|
|
protobufc,
|
|
cyrus_sasl,
|
|
}:
|
|
|
|
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: 22.04"
|
|
'';
|
|
};
|
|
pname = "aws-workspaces";
|
|
|
|
in
|
|
buildFHSEnv {
|
|
inherit pname;
|
|
inherit (workspacesclient) version;
|
|
|
|
runScript = "${workspacesclient}/bin/workspacesclient";
|
|
|
|
includeClosures = true;
|
|
|
|
targetPkgs = pkgs: [
|
|
workspacesclient
|
|
custom_lsb_release
|
|
webkitgtk_4_1
|
|
gtk3
|
|
pango
|
|
atk
|
|
cairo
|
|
gdk-pixbuf
|
|
protobufc
|
|
cyrus_sasl
|
|
];
|
|
|
|
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/${pname} $out/bin/workspacesclient
|
|
|
|
ln -s ${workspacesclient}/share $out/
|
|
'';
|
|
|
|
meta = workspacesclient.meta;
|
|
}
|