josh: 23.12.04 -> 24.08.14

This bumps josh to the new release, which includes a fix for the Rust
1.80 compilation issue.

See https://github.com/NixOS/nixpkgs/issues/332957 for context.
This commit is contained in:
Florian Klink 2024-08-14 12:48:32 +03:00 committed by Alyssa Ross
parent 52ab126310
commit 1bd503aa21

View File

@ -13,21 +13,21 @@
let
# josh-ui requires javascript dependencies, haven't tried to figure it out yet
cargoFlags = [ "--workspace" "--exclude" "josh-ui" ];
version = "24.08.14";
in
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage {
pname = "josh";
version = "23.12.04";
JOSH_VERSION = "r${version}";
inherit version;
src = fetchFromGitHub {
owner = "esrlabs";
repo = "josh";
rev = JOSH_VERSION;
sha256 = "10fspcafqnv6if5c1h8z9pf9140jvvlrch88w62wsg4w2vhaii0v";
rev = "v${version}";
hash = "sha256-6U1nhERpPQAVgQm6xwRlHIhslYBLd65DomuGn5yRiSs=";
};
cargoHash = "sha256-g4/Z3QUFBeWlqhnZ2VhmdAjya4A+vwXQa7QYZ+CgG8g=";
cargoHash = "sha256-s6+Bd4ucwUinrcbjNvlDsf9LhWc/U9SAvBRW7JAmxVA=";
nativeBuildInputs = [
pkg-config
@ -44,6 +44,9 @@ rustPlatform.buildRustPackage rec {
cargoBuildFlags = cargoFlags;
cargoTestFlags = cargoFlags;
# used to teach josh itself about its version number
env.JOSH_VERSION = "r${version}";
postInstall = ''
wrapProgram "$out/bin/josh-proxy" --prefix PATH : "${git}/bin"
'';