Comments (2)
This could be useful, but I don't think this should be implemented as a part of this project. Mixing in a state management would complicate things a lot (you know, caching and naming things). Also, stackage2nix
does not duplicate build definition, I like to think of it as a function that translates Stack build definition into Nix. And I want to keep the property of idempotence when with fixed inputs we get the same output.
Also, I believe the problem of managing (fixing) inputs can be done separately using pure Nix. The only thing is missing is the ability to generate stackage packages (packages.nix
and configuration-packages.nix
) and package overrides (default.nix
) separately. This could be done by adding a couple of configuration flags, in a much less invasive way.
What you can do now is to create such proof of concept build definition manually in Nix, as an example of stackage2nix
usage. And then it would be more clear if stackage2nix
can adapt something from it.
from stackage2nix.
Makes sense, and I had started thinking the same way about splitting this functionality out. I'll work on that and raise separate issues for allowing generation of stackage and project packages separately.
from stackage2nix.
Related Issues (20)
- Upload to hackage
- Support generating only stackage packages
- Support generating only project packages HOT 1
- Fails on `subdirs` of location.
- Make output order consistent HOT 2
- Support --hackage-db flag
- Support nightly Stackage HOT 4
- `nix-build nix/stackage2nix` fails with could not resolve github.com? HOT 13
- Build stackage2nix in NixOS sandbox HOT 15
- Filter package sources HOT 2
- Memory usage regression
- Remove <nixpkgs> reference in the generated Stackage LTS
- Generate Haskell packages with buildHaskellPackages argument
- support buildHaskellPackages attribute HOT 2
- Order of application of extensible-self? HOT 1
- Can't install on Nixos HOT 4
- Stack dependencies with subdirs are not supported HOT 1
- No such package in Cabal database while converting a stack project HOT 1
- Make compiler easier to configure
- Update configuration-packages.nix files
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 stackage2nix.