Commit Graph

41 Commits

Author SHA1 Message Date
Mathew Polzin
9b8bdbfa9d
idris2Packages.pack: init at 2024-02-07 (#344109) 2024-10-20 11:20:25 -05:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Mathew Polzin
8ed82c62be idris2Packages.pack: init at 2024-02-07 2024-09-24 09:06:11 -05:00
Mathew Polzin
fffc206f46 idris2Packages: make idris2Api a more formal package 2024-09-13 03:39:02 -05:00
Mathew Polzin
90d67c3e4f idris2Packages.buildIdris: QoL improvements
- use binary wrapper
- put environment variable into env attribute
- support adding attributes to passthru
2024-09-13 03:35:29 -05:00
Mathew Polzin
43f5fc8e72 idris2: add buildIdris tests 2024-09-13 03:35:29 -05:00
Mathew Polzin
b09ba65a43 idris2Packages: run nixfmt 2024-09-13 03:35:23 -05:00
Stefan Frijters
96cc7aa0ba
idris2Packages.idris2Lsp: fix cross eval 2024-09-05 17:10:53 +02:00
Mathew Polzin
84cde749e6 idris2Packages.idris2Lsp: apply ergonomics improvements facilitated by latest buildIdris changes 2024-06-23 11:24:29 -05:00
Mathew Polzin
85c18bcd36 idris2Packages.buildIdris: More lenient and ergonomic dependency inputs 2024-06-23 11:22:40 -05:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Fabián Heredia Montiel
cc6431d559
Merge pull request #297348 from mattpolzin/idris2-prefer-chez-10
idris2: prefer chez 10 over chez-racket
2024-05-09 13:13:33 -06:00
Mathew Polzin
8273075e61 idris2Packages.buildIdris: better nix-shell support via shellHook 2024-03-29 09:29:08 -05:00
Mathew Polzin
b46cee679f idris2: prefer chez 10 over chez-racket 2024-03-19 17:05:34 -05:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Fabián Heredia Montiel
d7e7fc9008
Merge pull request #293813 from mattpolzin/propagate-idris2-libs
idris2Packages.buildIdris: propagate idris libraries
2024-03-12 09:08:08 -06:00
Mathew Polzin
8082302cfa idris2Packages.idris2Lsp: Add metadata to derivation 2024-03-09 15:09:58 -06:00
Mathew Polzin
a0a7314433 idris2Packages.buildIdris: propagate idris libraries 2024-03-06 10:00:23 -06:00
Mathew Polzin
e9fa40dccd idris2Packages.idris2Lsp: init at 2024-01-21 2024-01-23 23:18:34 -06:00
Mathew Polzin
5fe69cb9cf idris2Packages.buildIdris: better packaging ergonomics, better executable support 2024-01-23 23:05:29 -06:00
Mathew Polzin
f3c916f909 idris2: add mattpolzin as a maintainer 2024-01-15 18:20:58 -06:00
Mathew Polzin
d7a058e6f7 idris2: add api package and buildIdris helper 2024-01-15 18:19:52 -06:00
Mathew Polzin
e09aaf7b55 idris2: 0.6.0 -> 0.7.0 2023-12-22 10:02:10 -06:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Erlend Hamberg
4f4a4eae8c
idris2: 0.5.1 -> 0.6.0 2022-10-28 16:27:38 +02:00
Artturin
7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
wchresta
205b0f2c5e Idris2: Refactor default.nix
We take the idris2 projects version of the derivation. Originally,
Idris2 did not maintain their own nix derivation, so we created our
own. Now they maintain their own derivation, so we should try to
keep ours as close to theirs.

This change comes with the following differences:
* support files are in its own output, instead of packaged with idris2
  - This makes it necessary to provide --package for contrib and network
    !!! This is a breaking change !!!
* IDIRS2_PREFIX is set to ~/.idris2 instead of pointing to nix-store
  - This makes --install work as expected for the user
* Properly set IDRIS2_PACKAGE_PATH
* non-linux platform uses chez-racket instead of chez
2022-01-10 22:01:42 +01:00
wchresta
7389893ebf idris2: add package tests
We had some bugs because simple compilation / execution cases
failed. This adds some very simple package tests that should
help us find these.
2021-12-23 18:25:24 +01:00
cherryblossom000
cc9186270a
idris2: use DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH on macOS
macOS uses `DYLD_LIBRARY_PATH` instead of `LD_LIBRARY_PATH`.
2021-12-13 22:18:43 +11:00
R. RyanTM
896ee5ffc6 idris2: 0.5.0 -> 0.5.1 2021-09-23 00:16:08 +00:00
R. RyanTM
948ef8a6c5 idris2: 0.4.0 -> 0.5.0 2021-09-19 08:30:18 +00:00
Fabián Heredia Montiel
37d73021ee idris2: fix packagePaths issue
packagePaths changed between idris2 `v0.3.0` and `v0.4.0` and now
includes a version number in the path.

Fixes nixos/nixpkgs#130310

Co-authored-by: zseri <zseri.devel@ytrizja.de>
Co-authored-by: Mario Rodas <marsam@users.noreply.github.com>
2021-07-15 21:50:33 -05:00
Fabián Heredia Montiel
c454c6855e idris2: 0.3.0 → 0.4.0
v0.4.0:
 - Added gmp as a build dependency
 - Removed bootstrap-test (test still available and more general)
 - Renamed bootstrap-build to bootstrap (bootstrap previously did
   bootstrap-build and bootstrap-test)
2021-06-24 13:27:56 -05:00
Ben Siraphob
acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07:00
Felix Springer
b77c2c5a89 idris2: 0.2.2 -> 0.3.0 2021-01-14 19:11:36 +01:00
Felix Springer
d273a8982d idris2: 0.2.1 -> 0.2.2 2021-01-03 00:44:16 +01:00
wchresta
24d5c73aa8 idris2: Enable --install, bugfixes
This removes the need of the bin/idris2_app folder and replaces
it with proper links to the nix-storage folders.
This allows the user to override IDRIS2_PREFIX which will allow
them to use --install to install libraries.

* Fix: idris2_app/ was exposed in bin/
* Remove native Idris2 wrapper that set LD_LIBRARY_PATH
* Improve new Idris2 wrapper to set Idris2 paths to out folders
2020-08-20 22:09:05 -04:00
Andrew Valencik
39cd8e3b91 idris2: 0.2.0 -> 0.2.1 2020-08-16 22:37:08 -04:00
davlum
a554e12833
idris2: fix build on macOS (#89548)
The idris2 Makefile tries to use different versions of sed depending on
the OS, but nix always uses the same version. Because the version of
sed that is expected on macOS doesn't exist in the nix environment, the
build fails. Setting the OS to empty string resolves the issue.
2020-06-07 18:06:35 -04:00
wchresta
7fc97cf30b idris2: 0.2.0-840e020 -> 0.2.0
* Upgrade to release version of idris2
* Add config for proper testing phase
2020-05-26 18:38:54 -04:00
wchresta
074c9cbe1c idris2: init at version 0.2.0-840e020
A purely functional programming language with first class types
2020-05-23 12:54:27 -04:00