rvolosatovs / nixify Goto Github PK
View Code? Open in Web Editor NEWSimple and extensible nix build library for real-world projects
License: MIT License
Simple and extensible nix build library for real-world projects
License: MIT License
Documentation is outdated, many things mentioned are not actually required
This is a tracking issue for addressing rust-lang/cc-rs#948 in the zig-cc
script
$ nix run 'github:rvolosatovs/nixify?dir=examples/rust-hello-multibin'
[...]
error: unable to execute '/nix/store/gm2sj4fii5pfyj0ghlfs5h2d5adg4bkx-rust-hello-multibin-0.1.0/bin/rust-hello-multibin': No such file or directory
Currently compilation of Rust projects linking to C libraries is broken or at least flaky.
It's not a priority for me personally, but it would be nice to have.
It appears that nix flake check
is being killed due to OOM
This is a continuation from this issue
I have a repo here:
https://github.com/mamcx/RustStoreNix/tree/nixify
I must compile on macOS, Linux
with targets windows, linux musl, android, ios
. But my major problem is with android. I need:
def archTriplets = [
'armeabi-v7a': 'armv7-linux-androideabi',
'arm64-v8a' : 'aarch64-linux-android',
]
I tried with:
❯ nix --version
nix (Nix) 2.18.1
{
inputs.nixify.url = github:rvolosatovs/nixify;
outputs = {nixify, ...}:
nixify.lib.rust.mkFlake {
src = ./.;
name = "rust-workspace";
build.workspace = true;
clippy.workspace = true;
test.workspace = true;
};
}
And get :
❯ nix develop
warning: Git tree '/Users/mamcx/Proyectos/Apps' is dirty
(nix:nix-shell-env) bash-5.2$ cargo build
+ command cargo build
Compiling ring v0.17.6
Compiling zstd-sys v2.0.9+zstd.1.5.5
Compiling generic-array v0.14.7
Compiling globset v0.4.14
Compiling rustix v0.38.26
Compiling pin-project v1.1.3
Compiling walkdir v2.4.0
Compiling libsqlite3-sys v0.27.0
Compiling tracing-subscriber v0.3.18
Compiling thiserror v1.0.50
Compiling phf_codegen v0.11.2
Compiling phf v0.11.2
Compiling parse-zoneinfo v0.3.0
error: linking with `cc` failed: exit status: 1
It most probably has to do with libiconv
linking
Note that there's no native support for wasm32-unknown-unknown
in nixpkgs
, so the target should be treated as just WASI
Rather than generating target-specific outputs based upon targets
in rust-toolchain.toml
, use a custom toolchain per-target and provide builds for various targets out-of-the-box
No response
merge the rust-toolchain.toml
toolchain with additional target per-output
fmt
and clippy
checks are added even when these components are not in the rust-toolchain.toml
, that should be fixed
Both components
and profile
should be checked
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.