Split the argument list into build and runtime dependencies and sort everything alphabetically. Unpin icu, it works with icu70, which is the latest version at this time. Remove yasm, it's not needed in firefox either.
@ -1,20 +1,24 @@
{ lib, stdenv
{ lib
, stdenv
, fetchurl
, pkg-config
# build time
, buildPackages
, cargo
, m4
, perl
, python3
, zip
, rust-cbindgen
, rustc
, which
# runtime
, icu
, nspr
, readline
, zlib
, icu69
, yasm
}:
stdenv.mkDerivation rec {
@ -31,20 +35,19 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
cargo
rustc.llvmPackages.llvm # for llvm-objdump
m4
perl
pkg-config
python3
rust-cbindgen
rustc
which
yasm # to buid icu? seems weird
zip
];
buildInputs = [
icu69
icu
nspr
readline
zlib