Unverified Commit eb10ef6d authored by Seth Flynn's avatar Seth Flynn
Browse files

rewaita: don't copy ro flag from files in /nix/store

parent 7a0aa666
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -29,6 +29,15 @@ python3Packages.buildPythonApplication {
    hash = "sha256-adSXq+DFw3IQxNuUkP1FcKlIh9h4Zb0tJKswYs3S92E=";
  };

  # Prevent the app from copying the RO flag of files from /nix/store
  postPatch = ''
    substituteInPlace src/interface_to_shell_theme.py \
      --replace-fail 'shutil.copy2' 'shutil.copyfile'

    substituteInPlace src/window.py \
      --replace-fail 'shutil.copy' 'shutil.copyfile'
  '';

  strictDeps = true;

  nativeBuildInputs = [