Unverified Commit 15a94966 authored by Seth Flynn's avatar Seth Flynn Committed by GitHub
Browse files

rewaita: don't copy ro flag from files in /nix/store (#433739)

parents 6386f3bc eb10ef6d
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 = [