triforce-lv2: remove overriding default phases

This commit is contained in:
Jasi
2025-06-27 12:39:12 -04:00
parent 2f6dc366e8
commit 825cdd97eb
+12 -6
View File
@@ -2,6 +2,7 @@
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
}:
rustPlatform.buildRustPackage rec {
@@ -15,16 +16,21 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-f4i0S6UaVfs1CUeQRqo22PRgMNwYDNoMunHidI1XzBk=";
};
postPatch = ''
substituteInPlace Makefile \
--replace-fail "target/release" \
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/$cargoBuildType"
'';
useFetchCargoVendor = true;
cargoHash = "sha256-2FC6wlFJkQryA/bcjF0GjrMQVb8hlUY+muFqPqShWss=";
installPhase = ''
export LIBDIR=$out/lib
mkdir -p $LIBDIR
dontCargoInstall = true;
make
make install
'';
installFlags = [
"DESTDIR=$(out)"
"LIBDIR=lib"
];
meta = with lib; {
homepage = "https://github.com/chadmed/triforce";