File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ stdenv.mkDerivation rec {
4040 hash = "sha256-731aD+yJkyrNMmYtgKYzXIAyLegDBzTT2XqZs5usXiI=" ;
4141 } ;
4242
43+ postPatch = ''
44+ substituteInPlace src/meson.build --replace-fail \
45+ "cargo_output = 'src' / rust_target / meson.project_name()" \
46+ "cargo_output = 'src' / '${ stdenv . hostPlatform . rust . cargoShortTarget } ' / rust_target / meson.project_name()"
47+ '' ;
48+
4349 nativeBuildInputs = [
4450 appstream-glib
4551 blueprint-compiler
@@ -71,6 +77,9 @@ stdenv.mkDerivation rec {
7177 # https://github.com/xou816/spot/issues/313
7278 mesonBuildType = "release" ;
7379
80+ # For https://github.com/xou816/spot/blob/21ee601f655caa4ca9cae1033a27459fe6289318/src/meson.build#L122
81+ env . CARGO_BUILD_TARGET = stdenv . hostPlatform . rust . rustcTargetSpec ;
82+
7483 passthru = {
7584 updateScript = nix-update-script { } ;
7685 } ;
You can’t perform that action at this time.
0 commit comments