Comments (4)
This does what I need:
packages.nix
let
flake = (import (fetchTarball {
url="https://github.com/edolstra/flake-compat/archive/c75e76f80c57784a6734356315b306140646ee84.tar.gz";
sha256="071aal00zp2m9knnhddgr2wqzlx6i6qa1263lv1y7bdn2w20h10h";
}) {
src = builtins.fetchGit ./.;
}).defaultNix;
in
builtins.attrValues
flake.packages."${builtins.currentSystem}"
from nix-build-uncached.
AFAICT the flakes docs don't work.
getFlake
is only available when flakes is enabled, I don't think it works from nix-build, or at least I can't get it to.I assume flake-compat will work? I'm going to try.
Yes. It assumes that your nix has flakes enabled. But than nix-build
should also work.
from nix-build-uncached.
Weird, yeah, it works now and isn't complaining about getFlake
working. (I really did enable flakes system-wide last night).
Well, anyway, I need this to work in CI where I don't think I have control over the daemon or don't want to mess with it, so I'll probably keep using this (being my flake-compat version) anyhow.
That having been said, this issue isn't valid afaict.
from nix-build-uncached.
There is a way to get flake-enabled nix version in CI: https://github.com/nix-community/nix-direnv/blob/master/.github/workflows/test.yml
from nix-build-uncached.
Related Issues (18)
- Cannot build on nix 2.3.4 HOT 2
- error: attribute '' missing HOT 7
- How to use with niv (without <nixpkgs>)? HOT 6
- Output can't be piped to cachix HOT 4
- `allowSubstitutes = false` issue HOT 8
- Cannot import path: invalid HOT 2
- Investigate complete flakes support via `allow-import-from-derivation` option HOT 4
- question about cachix's garbage collection HOT 4
- nothing is being built
- Detection for '--experimental-features' has changed? HOT 6
- Special return on no-rebuild HOT 3
- Using nix copy after nix-build-uncached HOT 4
- flakes: weird behavior with github actions nix-build-uncached HOT 7
- Outputs existing in local store but not in cache are not built HOT 1
- Pass flags only to `nix build` HOT 3
- Do not truncate logs? HOT 5
- nix-build-uncached doesn't build anything with nix 2.15 HOT 5
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 nix-build-uncached.