Merge pull request #21852 from lheckemann/remove-syncthing-go-dep
syncthing: remove runtime dependency on go
This commit is contained in:
commit
65b397bf8c
@ -1,4 +1,10 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, go, pkgs }:
|
{ 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 {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.14.18";
|
version = "0.14.18";
|
||||||
@ -42,6 +48,10 @@ stdenv.mkDerivation rec {
|
|||||||
--replace /usr/bin/syncthing $out/bin/syncthing
|
--replace /usr/bin/syncthing $out/bin/syncthing
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
find $out/bin -type f -exec ${removeExpr go} '{}' '+'
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://www.syncthing.net/;
|
homepage = https://www.syncthing.net/;
|
||||||
description = "Open Source Continuous File Synchronization";
|
description = "Open Source Continuous File Synchronization";
|
||||||
|
Loading…
Reference in New Issue
Block a user