813e0c0747
With this change it becomes possible to push back to code.tvl.fyi through josh views. We probably want to change this patch so that it can be upstreamed, but for now I just want to get this to work. Change-Id: I7cdacf384e38da6ba9621e5818cfaf7c5d5c99a2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5273 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: tazjin <tazjin@tvl.su>
33 lines
620 B
Nix
33 lines
620 B
Nix
# https://github.com/esrlabs/josh
|
|
{ depot, pkgs, ... }:
|
|
|
|
let
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "esrlabs";
|
|
repo = "josh";
|
|
rev = "effe6290559136faba5591a115e56c2b30210329";
|
|
hash = "sha256:0kam9rqjk96brvh15wj3h3vm2sqnr5pckz91az2ida5617d5gp9v";
|
|
};
|
|
in
|
|
depot.third_party.naersk.buildPackage {
|
|
inherit src;
|
|
|
|
buildInputs = with pkgs; [
|
|
libgit2
|
|
openssl
|
|
pkgconfig
|
|
];
|
|
|
|
cargoBuildOptions = x: x ++ [
|
|
"-p"
|
|
"josh"
|
|
"-p"
|
|
"josh-proxy"
|
|
"-p"
|
|
"josh-ui"
|
|
];
|
|
|
|
overrideMain = x: {
|
|
patches = [ ./0001-josh-proxy-Always-require-authentication-when-pushin.patch ];
|
|
};
|
|
}
|