diff options
-rw-r--r-- | pkgs/applications/networking/syncthing/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/applications/networking/syncthing/default.nix b/pkgs/applications/networking/syncthing/default.nix index 8e568798df81..48a348b699d5 100644 --- a/pkgs/applications/networking/syncthing/default.nix +++ b/pkgs/applications/networking/syncthing/default.nix @@ -1,4 +1,10 @@ { stdenv, lib, fetchFromGitHub, go, pkgs }: +let + removeExpr = ref: '' + sed -i "s,${ref},$(echo "${ref}" | sed "s,$NIX_STORE/[^-]*,$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee,"),g" \ + ''; + +in stdenv.mkDerivation rec { version = "0.14.18"; @@ -42,6 +48,10 @@ stdenv.mkDerivation rec { --replace /usr/bin/syncthing $out/bin/syncthing ''; + preFixup = '' + find $out/bin -type f -exec ${removeExpr go} '{}' '+' + ''; + meta = with stdenv.lib; { homepage = https://www.syncthing.net/; description = "Open Source Continuous File Synchronization"; |