From 43ea14602b3ae363dbe2d9a6b4a0afedbec4eae3 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Fri, 4 Aug 2023 17:46:38 +0800 Subject: [PATCH] timeshift: Backport upstream shebang fix On nixos-unstable this is fixed via 23.07.1 bump. --- pkgs/applications/backup/timeshift/unwrapped.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/applications/backup/timeshift/unwrapped.nix b/pkgs/applications/backup/timeshift/unwrapped.nix index 8e86b35cf7cc..1d5819c8a62e 100644 --- a/pkgs/applications/backup/timeshift/unwrapped.nix +++ b/pkgs/applications/backup/timeshift/unwrapped.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , gettext , pkg-config , vala @@ -26,6 +27,14 @@ stdenv.mkDerivation rec { patches = [ ./timeshift-launcher.patch + + # Use /usr/bin/env bash for shebang + # On nixos-unstable this is fixed via 23.07.1 bump + # https://github.com/linuxmint/timeshift/pull/209 + (fetchpatch { + url = "https://github.com/linuxmint/timeshift/commit/bb8b2a2020be8c9919310de22f547b46177ed327.patch"; + hash = "sha256-DyGMxMiUfmm5FCEQD9L7LLj2LxxNVRt+aTNFl4jrH4Y="; + }) ]; postPatch = ''