2021-04-15 16:45:51 +02:00
|
|
|
# https://github.com/esrlabs/josh
|
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2021-05-02 16:37:23 +02:00
|
|
|
src = pkgs.fetchFromGitHub {
|
2021-04-15 16:45:51 +02:00
|
|
|
owner = "esrlabs";
|
|
|
|
repo = "josh";
|
2022-02-11 11:17:21 +01:00
|
|
|
rev = "effe6290559136faba5591a115e56c2b30210329";
|
|
|
|
hash = "sha256:0kam9rqjk96brvh15wj3h3vm2sqnr5pckz91az2ida5617d5gp9v";
|
2021-04-15 16:45:51 +02:00
|
|
|
};
|
|
|
|
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"
|
|
|
|
];
|
2022-02-11 11:17:35 +01:00
|
|
|
|
|
|
|
overrideMain = x: {
|
|
|
|
patches = [ ./0001-josh-proxy-Always-require-authentication-when-pushin.patch ];
|
2022-02-09 15:12:04 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = (x.nativeBuildInputs or [ ]) ++ [ pkgs.makeWrapper ];
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/josh-proxy --prefix PATH : "${pkgs.git}/bin"
|
|
|
|
'';
|
2022-02-11 11:17:35 +01:00
|
|
|
};
|
2021-04-15 16:45:51 +02:00
|
|
|
}
|