Commit Graph

49 Commits (6a9d0b3c6458c439a6138cb5d76e1df3a09522d7)

Author SHA1 Message Date
Michael Davis d6856cfeec
Refactor Nix flake to use crane (#7763)
This resolves a build issue with nci/dream2nix and git dependencies.
We can keep most of the helix-specific parts of the flake, we just need
to switch from configuring nci to calling craneLib functions.

We also switch to flake-utils from flake-parts:

* Using rust-overlay with flake-parts directly is unergonomic
  (see https://github.com/hercules-ci/flake-parts/discussions/83).
* Removing flake-parts reduces the overall dependencies: rust-overlay
  already depends on flake-utils.
1 year ago
Blaž Hrastnik 1e5997dc98
nix: Update flake dependencies 2 years ago
Yusuf Bera Ertan c3c87741d9
build(nix): update flake dependencies, remove deprecated code from flake 2 years ago
Yusuf Bera Ertan 309735aa2d
build(nix): fix devshell 2 years ago
Yusuf Bera Ertan e5af0f1d49
build(nix): update flake to use flake-parts and nci flake-parts module 2 years ago
Yusuf Bera Ertan 03baec8a2d
build(nix): update inputs (#5219) 2 years ago
Yusuf Bera Ertan 48e44720e4
build(nix): don't run tests in builds since CI runs them already, update inputs (#4834) 2 years ago
Matthew Toohey 46eb185d45
build(nix): update nci (#4823) 2 years ago
Blaž Hrastnik 9a898be959
nix: Bump flake dependencies 2 years ago
Yusuf Bera Ertan 3881fef39d
build(nix): update nci, fixup flake (#4537) 2 years ago
Yusuf Bera Ertan 59f7b07c86
build(nix): update flake deps (#3663) 2 years ago
Yusuf Bera Ertan e917a8e0be
build(nix): update nci, refactor flake, seperate wrapping, add source filtering (#3657) 2 years ago
Michael Davis bf1db737d4
nix: update nixCargoIntegration (#2907)
This fixes the aarch64-darwin build - the newer revision uses the
cCompiler override to compile tree-sitter with clang instead of
gcc (which fails).
2 years ago
Yusuf Bera Ertan 8c86cd56cb build(nix): update flake deps, add default.nix file 2 years ago
Yusuf Bera Ertan bb83ea8393
chore(nix): format nix files with alejandra, update deps, minor code refactors (#2683) 3 years ago
Blaž Hrastnik d6865cdca3
nix: bump dependencies 3 years ago
Blaž Hrastnik 7b287f636f
nix: update flake dependencies 3 years ago
Johann Dahm e529ca1b92
Fix build on aarch64-darwin (#1789)
Co-authored-by: Yusuf Bera Ertan <y.bera003.06@protonmail.com>
3 years ago
Michael Davis e01c53551d flake: use builtins.fetchTree to shallow-clone grammar repos
Here we perform a shallow fetch using builtins.fetchTree. In order
to make this work, we need to specify the `ref' for any repository
that doesn't have `master' as its default branch (I'm not sure why
this limitation exists since we don't need this when performing
the shallow fetch in `--grammar build')

This `ref' field is ignored by helix, so I have left it undocumented
for now, but I could be open to documenting it.
3 years ago
Michael Davis f31e85aca4
use latest nix-cargo-integration which depends on dream2nix (#1758)
https://github.com/nix-community/dream2nix is a fairly new and
cool-looking project for adapting upstream package manager outputs
(lockfiles mostly it would seem) for nix.

This should improve the ability to cross-compile. As a more concrete
measure of improvement, `nix flake check' now succeeds 🎉
3 years ago
Erin Kim 0ff3e3ea38
Add `inputs.nixpkgs.follows` to `rust-overlay` in `flake.nix` (#1729)
* add `inputs.nixpkgs.follows` to `rust-overlay`

* Update flake.lock
3 years ago
Blaž Hrastnik e7eab95b94 Update to rust 1.58, fix a bunch of optional lints 3 years ago
Jared Ramirez a2fad4fcb0
Fix Nix flake (#1455) 3 years ago
Blaž Hrastnik 8208d22601 nix: Update flake.lock 3 years ago
Blaž Hrastnik 34f46e7502 Bump rust to 1.57, fix new lint failures 3 years ago
Blaž Hrastnik a45df12699 nix: Update to lld 13, drop flake-compat (was unused) 3 years ago
Blaž Hrastnik 182a59b552 Update to rust 1.56 + 2021 edition 3 years ago
Yusuf Bera Ertan 004c8fd462 chore(nix): update flake inputs and submodule 3 years ago
Blaž Hrastnik 08967baef6 flake: Update dependencies 3 years ago
Blaž Hrastnik 6cd77ef380 nix: Update flake 3 years ago
Blaž Hrastnik b3aefe18cd nix: Update flake 3 years ago
Yusuf Bera Ertan 41f62c3157 build(nix): fix build issues 3 years ago
Yusuf Bera Ertan 6dddd5cd1d build(nix): fetch submodules lazily 3 years ago
Malte Voos 2cbec2b047 Update flake.lock
Closes #302
3 years ago
Yusuf Bera Ertan ca02024199 chore(nix): update nixCargoIntegration input 4 years ago
Yusuf Bera Ertan a3f01503e2 build(nix): use nix-cargo-integration, make shell.nix use flake devshell 4 years ago
Timothy DeHerrera 1a774d61bb Fix flake package 4 years ago
Blaž Hrastnik d5466eddf5 Update flake deps 4 years ago
Blaž Hrastnik dbeae43fbe Bump deps: rust 1.52. 4 years ago
Blaž Hrastnik b6a22e955b Closer to a full flake build via naersk.
Blocked on https://github.com/NixOS/nix/issues/4423, build doesn't see
submodules.
4 years ago
Blaž Hrastnik 5253f40477 nix: Switch to stable rust. 4 years ago
Blaž Hrastnik 4103349be1 Update flake.lock 4 years ago
Blaž Hrastnik 7865ca7ef0 Update flake. 4 years ago
Blaž Hrastnik 4102992c46 Bump deps. 4 years ago
Blaž Hrastnik 41c0d5828f flake: Packaging definition. 4 years ago
Blaž Hrastnik 6dba0516f2 flake: Update deps. 4 years ago
Blaž Hrastnik 755632f231 deps update 4 years ago
Blaž Hrastnik 4b2b62ebc6 Update flake definition. 4 years ago
Blaž Hrastnik f1539cc866 Add a nix flake with the development environment. 4 years ago