Commit 81092f29 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

aws-workspaces: do not reuse `pname`

parent 8ab2843d
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
{
  lib,
  callPackage,
  writeShellApplication,
  buildFHSEnv,
@@ -34,14 +35,12 @@ let
      echo "Release: 22.04"
    '';
  };
  pname = "aws-workspaces";

in
buildFHSEnv {
  inherit pname;
  pname = "aws-workspaces";
  inherit (workspacesclient) version;

  runScript = "${workspacesclient}/bin/workspacesclient";
  runScript = lib.getExe workspacesclient;

  includeClosures = true;

@@ -66,7 +65,7 @@ buildFHSEnv {

  # expected executable doesn't match the name of this package
  extraInstallCommands = ''
    mv $out/bin/${pname} $out/bin/workspacesclient
    mv $out/bin/aws-workspaces $out/bin/${workspacesclient.meta.mainProgram}

    ln -s ${workspacesclient}/share $out/
  '';