Commit Graph

12 Commits

Author SHA1 Message Date
Mathew Polzin
0ea7c599cb allow buildIdris output to be used as a dependency in other buildIdris calls more directly 2024-06-26 15:23:08 -05:00
Mathew Polzin
7d33c0438a
Nix buildIdris improvement: precisely target executable (#3330)
* don't assume all .so files are the exectuable

* don't rebuild support or the compiler if only the buildIdris nix function has changed

* fixes to nix buildIdris function
2024-06-25 19:03:54 -05:00
Mathew Polzin
1977dbd640
better nix-shell support via shellHook (#3243) 2024-04-01 10:00:10 -05:00
Mathew Polzin
e518122d1d
propagate dependencies for the buildIdris nix function so that specifying dependencies is much more intuitive. (#3226) 2024-03-07 08:22:50 -06:00
Mathew Polzin
cf4c87cc71
hopefully final refactor of buildIdris (#3200)
- align buildIdris function with direction of nixpkgs version.
- tangentially, update naming of local variables to follow nixpkgs.
- use pname/version instead of name for buildIdris derivations.
2024-01-21 23:05:26 -06:00
Mathew Polzin
d34cf62611
Fix buildIdris on non-macos machines (#3195)
* Fix `buildIdris` on non-macos machines

We build the support library as its own derivation for Nix builds so we do not want to copy it as part of the `buildIdris` install phase and we certainly don't want to wrap it as if it were an executable.

* Update nix/buildIdris.nix
2024-01-18 19:51:56 -06:00
Mathew Polzin
da6f0b0e4e
Fix executable output of buildIdris nix helper (#3188) 2024-01-08 23:58:17 -06:00
Mathew Polzin
8746f1671b
Improve buildIdris and expose the idris2-api via the Nix flake. (#3182)
* Refactor buildIdris slightly and support installing libraries with source. Add the Idris2 API package as an output of the flake.

* update templates and simplify construction of a search path.

* use newer method of specifying default package

* swap out trace function for warn function. fix warnings in template generation
2024-01-05 15:59:11 -06:00
Nathan McCarty
407409fecc
[ ci ] Simplify bootstrap process in nix (#2731) 2022-10-28 19:29:30 +01:00
Matthieu Coudron
6780874d2e nix flake: make it more idiomatic
so that one can pass attributes directly to buildIdris instead of the
convoluted.
buildIdris (...).build.overrideAttrs(oldAttrs: {})
2021-09-07 16:34:45 +01:00
zseri
96d914b93d Nix: improve buildIdris
- DRY
- idris2 is used as a compiler, should thus be in nativeBuildInputs
2021-06-30 15:33:37 +01:00
Guilherme Silva
4144510bb3
Added new nix functionalities (#1154) 2021-03-15 14:21:50 +00:00