Commit 8ad110ac authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

sx: fix cross patching

parent 875bb585
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  fetchFromGitHub,
  makeDesktopItem,
  patsh,
  coreutils,
  xorg,
  nixosTests,
}:
@@ -24,12 +25,13 @@ stdenvNoCC.mkDerivation (finalAttrs: {
  nativeBuildInputs = [ patsh ];

  buildInputs = [
    coreutils # needed for cross
    xorg.xauth
    xorg.xorgserver
  ];

  postInstall = ''
    patsh -f $out/bin/sx -s ${builtins.storeDir}
    patsh -f $out/bin/sx -s ${builtins.storeDir} --path "$HOST_PATH"

    install -Dm755 -t $out/share/xsessions ${
      makeDesktopItem {