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-06-01 23:50:04 +02:00
|
|
|
rev = "c56b1b81b66a43c67f94530bcb4979c1a9307c97";
|
|
|
|
sha256 = "0vahfiv7min1carlhzljn4f4xv9v9fxxq5y8qwwldg7agxck3x6m";
|
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
|
|
|
}
|