gitlab-shell: Split patch into ruby and go parts

Split the remove-hardcoded-locations patch into two separate patches,
one for the ruby package and one for the go package. This is clearer
and results in fewer rebuilds.
This commit is contained in:
talyz
2019-10-02 16:44:55 +02:00
parent f3eb063ecf
commit 09e657efea
3 changed files with 31 additions and 31 deletions

View File

@@ -17,7 +17,7 @@ let
pname = "gitlab-shell-go";
inherit src version;
patches = [ ./remove-hardcoded-locations.patch ];
patches = [ ./remove-hardcoded-locations-go.patch ];
goPackagePath = "gitlab.com/gitlab-org/gitlab-shell";
goDeps = ./deps.nix;
@@ -36,8 +36,8 @@ in
stdenv.mkDerivation {
pname = "gitlab-shell";
inherit src version;
patches = [ ./remove-hardcoded-locations.patch ];
patches = [ ./remove-hardcoded-locations-ruby.patch ];
# gitlab-shell will try to read its config relative to the source
# code by default which doesn't work in nixos because it's a