wcc: 0.0.7-unstable-2025-04-30 -> 0.0.11

This commit is contained in:
kyehn
2025-08-29 17:56:58 +08:00
parent ebe3396323
commit 16f2b6a6b3
2 changed files with 32 additions and 6 deletions
+16
View File
@@ -0,0 +1,16 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "rust_demangle_lib"
version = "0.1.0"
dependencies = [
"rustc-demangle",
]
[[package]]
name = "rustc-demangle"
version = "0.1.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace"
+16 -6
View File
@@ -1,7 +1,9 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
cargo,
capstone,
libbfd,
libelf,
@@ -9,19 +11,26 @@
readline,
}:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "wcc";
version = "0.0.7-unstable-2025-04-30";
version = "0.0.11";
src = fetchFromGitHub {
owner = "endrazine";
repo = "wcc";
rev = "8cbb49345d9596dfd37bd1b681753aacaab96475";
hash = "sha256-TYYtnMlrp/wbrTmwd3n90Uni7WE54gK6zKSBg4X9ZfA=";
tag = "v${finalAttrs.version}";
hash = "sha256-hyelDAsE3IFvUxBqttYW7QmM6NPEa6pOREmawFjW2Q8=";
deepClone = true;
fetchSubmodules = true;
};
cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
nativeBuildInputs = [
cargo
rustPlatform.cargoSetupHook
];
buildInputs = [
capstone
libbfd
@@ -31,12 +40,13 @@ stdenv.mkDerivation {
];
postPatch = ''
cp ${./Cargo.lock} Cargo.lock
sed -i src/wsh/include/libwitch/wsh.h src/wsh/scripts/INDEX \
-e "s#/usr/share/wcc#$out/share/wcc#"
sed -i -e '/stropts.h>/d' src/wsh/include/libwitch/wsh.h
sed -i '/wsh-`uname -m`.*-static/d' src/wsh/Makefile
sed -i '/wsh-static/d' src/wsh/Makefile
'';
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
@@ -74,4 +84,4 @@ stdenv.mkDerivation {
DieracDelta
];
};
}
})