Comments (6)
With flakes available now switching to flakes to provide nixpkgs
may be a better option.
from rules_nixpkgs.
Hi @tshaynik ,
sorry, I have been also working on this, but did not get around to pushing until now...
Could you please have a look at PR #265 ?!
from rules_nixpkgs.
@tshaynik Nice, that would be a good change.
Beware that the are two layers to this. One is the Nix shell that provides Bazel, that should be reasonably straight forward, I expect. The other is the nixpkgs
that's imported into Bazel using rules_nixpkgs
. I think that's less straight forward, as rules_nixpkgs
invokes nix-build
and may need a compatibility layer access the nixpkgs
attribute.
It may be better to split this task in two: One for the shell, and a separate one for importing nixpkgs
from a flake.
from rules_nixpkgs.
I would be happy to work on switching the project over to using flakes!
from rules_nixpkgs.
Makes sense! I'll push a WIP pull request with the flake that provides the nix devShell today, and start looking into the more complex second part.
It will probably make sense to switch the invocation from the old nix-build
to the flake-aware nix build
as well.
from rules_nixpkgs.
It will probably make sense to switch the invocation from the old
nix-build
to the flake-awarenix build
as well.
Yes, perhaps, if so, be sure to check if this has compatibility breaking consequences.
from rules_nixpkgs.
Related Issues (20)
- Consider deprecating nixpkgs_go_configure
- `nixpkgs_java_configure` doesn't work with nixpkgs Bazel 7 HOT 2
- Rust example doesn't work (cc not found)
- module extension for NodeJS toolchain
- Gracefuly handle available CPU cores HOT 4
- Cannot switch cxx standard HOT 2
- Publish to BCR failed HOT 4
- Can't build rust wasm targets HOT 1
- Release workflow is broken HOT 2
- examples in `examples/toolchains` use a platform provided cc toolchain HOT 2
- make `rules_nixpkgs_java` work with bazel 7 and bzlmod HOT 1
- Configurable NodeJS toolchain module extension
- Design an easy way to get the LICENSE of a nix package
- Dependency Dashboard
- Lack of llvmPackages.libcxxabi for e.g. 23.11 HOT 1
- add `java_runtime` version field for JDK 17+ HOT 1
- nix remote jobs are not working correctly on CI
- CI `testing/python` is very slow and flaky on MacOS HOT 1
- How to toggle optional dependencies HOT 4
- libstdc++.so.6 not found for haskell binary
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_nixpkgs.