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";
|
2021-09-15 16:15:59 +02:00
|
|
|
rev = "4a70f2914260066b2db44f4cabe9b80acdd556af";
|
|
|
|
sha256 = "0gwn3daj24538h5ddksvnyhq4lyjh0br9k49jhbd7r1sm6ly2cwl";
|
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"
|
|
|
|
];
|
2021-06-01 23:34:32 +02:00
|
|
|
|
|
|
|
overrideMain = x: {
|
|
|
|
patches = [ ./0001-replace-mentions-of-master-with-canon.patch ];
|
|
|
|
};
|
2021-04-15 16:45:51 +02:00
|
|
|
}
|