summaryrefslogtreecommitdiff
path: root/pkgs/build-support/agda (follow)
Commit message (Expand)AuthorAgeFilesLines
* build-support/agda: Keep passthru in mkDerivationRasheeq Azad2025-11-271-3/+8
* Conditionally create symlink to agda-mode if presentCarlos Tomé Cortiñas2025-10-281-0/+3
* Update pkgs/build-support/agda/default.nix•••Co-authored-by: Philip Taron <philip.taron@gmail.com>Carlos Tomé Cortiñas2025-10-281-1/+1
* Remove agda-mode from executablesCarlos Tomé Cortiñas2025-10-281-1/+0
* Replace hardcoded agda binary by name from packageCarlos Tomé Cortiñas2025-10-281-3/+3
* agda.withPackages: add libraryFile to passthruwrvsrx2025-10-021-3/+6
* agda: fixes for 2.8.0 (#424180)Philip Taron2025-07-172-11/+5
|\
| * agdaPackages: switch to `--build-library`•••Use the new `--build-library` mode introduced in Agda 2.8.0 to build libraries instead of relying on ad-hoc `Everything` files. This simplifies most derivations (except cubical-mini which imports generated `Everything` files from various modules). Naïm Camille Favier2025-07-162-11/+5
* | haskellPackages.Agda: set `mainProgram`Naïm Camille Favier2025-07-161-2/+2
* | agda: use `getBin Agda` instead of `Agda.bin`•••Makes the wrapper work if `enableSeparateBinOutput` is off. Naïm Camille Favier2025-07-161-2/+2
|/
* agda.withPackages: allow installing Agda without GHC using `ghc = null;`Tsung-Ju Chiang2025-05-281-1/+1
* treewide: format all inactive Nix files•••After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \ --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7 result/bin/apply-formatting $NIXPKGS_PATH Silvan Mosberger2024-12-102-83/+124
* 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" ``` Artturin2024-09-251-1/+1
* build-support/agda: expose mkLibraryFileNaïm Favier2024-07-041-5/+8
* haskellPackages.Agda: Split outputs to reduce closure size•••After enabling a separate binary output for the `Agda` Haskell package, the new `bin` output measures ~100MiB, compared to the ~4.5GiB before. Using it in `agdaWithPackages` reduces the closure size of an Agda installation from ~5GiB to ~3GiB. The remaining space is taken up mostly by the GHC backend. With this change, derivations depending on `haskellPackages.Agda` directly need to pick the right (binary) output. This concerns in particular `emacsPackages.agda2-mode`. Philipp Joram2024-04-071-3/+4
* Merge master into staging-nextgithub-actions[bot]2024-03-312-7/+9
|\
| * agda: Don't be too picky about `everythingFile`•••The `-path` test of `find` does string comparison, not path comparison. Hence, the format of `everythingFile` needed to be very specific. Now, it can be denormalized (e.g. it can contain `/./`) and an error is emitted if the everything file or its interface file can't be removed. ibbem2024-03-182-4/+7
| * agda: Remove the --local-interfaces flag•••Upstream now provides a library file for the builtin library and ensured that the existing interface files will be used regardless of whether --local-interfaces is in effect. Hence, Agda will not try to write to the Nix store anymore except if the build flags are changed. ibbem2024-03-182-7/+6
* | Avoid top-level `with ...;` in pkgs/build-support/agda/default.nixPhilip Taron2024-03-191-10/+24
|/
* agdaPackages.*: support literate Typst filesNaïm Favier2023-10-242-1/+2
* Merge remote-tracking branch 'origin/master' into haskell-updatessternenseemann2023-02-181-1/+5
|\
| * agda: fix passthru•••The current `//` override to `agda.passthru.tests` is non-recursive so it destroys everything else under `passthru`, and furthermore does not go through `mkDerivation` so that we end up with different values for `agda.tests` and `agda.passthru.tests`. Fix it by moving the `allPackages` test to the definition of `withPackages`. Naïm Favier2023-02-121-1/+5
* | agda: 2.6.2.2 -> 2.6.3Ingo Blechschmidt2023-02-141-0/+7
|/
* agda: pass through metaNaïm Favier2023-01-121-1/+2
* Merge pull request #98214 from turion/dev_test_all_agda_packages•••Fix #98209. Test all agda packagesManuel Bärenz2021-10-192-0/+10
|\
| * agdaPackages: Build reverse dependencies on testManuel Bärenz2021-08-032-0/+10
* | build-support/agda: Make includePaths configurableManuel Bärenz2021-08-301-1/+3
* | treewide: runCommandNoCC -> runCommand•••This has been synonymous for ~5y. Robert Hensing2021-08-151-2/+2
|/
* agdaPackages: Don't build broken packages on hydraManuel Bärenz2021-07-221-0/+2
* mkShell: introduce packages argument (#122180)•••The distinction between the inputs doesn't really make sense in the mkShell context. Technically speaking, we should be using the nativeBuildInputs most of the time. So in order to make this function more beginner-friendly, add "packages" as an attribute, that maps to nativeBuildInputs. This commit also updates all the uses in nixpkgs.Jonas Chevalier2021-05-131-1/+1
* agda nixos test: add to passthru for agda + stdlibAlex Rice2021-03-301-2/+5
* Merge pull request #110512 from neosimsim/agda-dont-install-Everything•••Agda don't install Everything moduleAnderson Torres2021-02-032-1/+11
|\
| * agdaPackages.mkDerivation: don't install Everything module•••The Everthing module is not part of a library and should therefore not be copied to the nix store. This is particularly bad, if the Everything module is defined in an agda library included directory, e.g. consider an agda-lib with include: . and Everything.agda in the project root (.), in which case the Everything module would become part of the library. If multiple such projects are in the dependency tree, the Everything module becomes ambiguous and the build would fail. Alexander Ben Nasrallah2021-01-242-1/+11
* | agda.withPackages: use GHC with ieee754 as default•••As mentioned in the package description of ieee on Hackage, ieee is deprecated in favor of ieee754. Alexander Ben Nasrallah2021-01-221-1/+1
|/
* agda: install literate filesAlex Rice2020-06-011-1/+12
* agda: rework builderAlex Rice2020-05-141-76/+57
* treewide: fix *FlagsRobin Gloster2019-12-301-2/+2
* Remove myself (fuuzetsu) from maintainer lists•••I haven't been doing any maintenance for a long time now and not only do I get notified, it also creates a fake impression that all these packages had at least one maintainer when in practice they had none. Mateusz Kowalczyk2019-12-051-2/+0
* agda: use exec in agdaWrapperDmitry Kalinkin2018-12-071-1/+1
* agda: use writeShellScriptbin instead of writeScriptBin•••This adds the shell shebang to the wrapper script. Without this, emacs and in particular agda2-mode (but probably other applications as well) return a format error when trying to execute agda. Moritz Kiefer2018-11-081-2/+2
* agda: Remove unused/uneeded abstractions, including `postprocess`John Ericson2015-05-311-18/+11
* agda: Just `with` all of the string helper functionsJohn Ericson2015-05-311-3/+3
* agda: `postprocess` and `defaults` need not be in the scope of argsJohn Ericson2015-05-301-68/+67
* agda: Provide a `.env` like Haskell instead of `.extras`John Ericson2015-05-301-19/+13
* agda: Wrapper is no longer built by default•••Instead it is provided to the user who can choose whether or not to include it in the final derivati. Example of including would be: ```nix callPackage ... (self: { inherit (self.extras) extraThing; }) ``` These extras are also available downstream without being built by default. This is achieved with `passthru`. John Ericson2015-05-201-16/+23
* agda: Agda dependencies are treated seperately••• - Only they are added to the optional build path (share/agda) - Only they are are passed as an include dir (share/agda) - Only they are propigatedBuildInputs John Ericson2015-05-201-6/+14
* agda: Remove `extraBuildFlags`•••This is unused, future users can just use override `buildFlags` and extend/replace as needed. `includeDirs` is provided for this purpose. We should add `dirOf self.everythingFile` rather than `.`, but `dirOf` breaks on relative paths so that is not an option. John Ericson2015-05-181-6/+5
* agda: Remove buildTools, it is unusedJohn Ericson2015-05-181-3/+1
* agda: Replace `eval` with `runHook`•••This is what haskell-ng does, so I figure it is the right thing to do. John Ericson2015-05-171-6/+6
* agda: Remove unnecessary env-var export•••Derivation attributes are automatically exported as environment variables already. John Ericson2015-05-171-1/+0