Change:
As of Agda 2.5.1 (which comes on the latest nixos-unstable release), both nixpkgs' agda-stdlib (from git nominally at version 2.4.2.3) and an updated version (v0.12, the most recent release) fail to build. Some modules are checked successfully, but it gets stuck at (the first builtin module it finds). For this module only, it tries to write to . Output: System: (Flounder) Nix version: nix-env (Nix) 1.11.2 Nixpkgs version: ""
has the same issue, meaning that there has probably been some change in Agda. The problem seems to be that writes a file for each file it checks, and some files it's checking are in the Nix store (specifically, in ). I think it's to do with . Maybe it would work if these were checked when building .
Current status: .
Fixed by .
Let's keep this open until the fix lands in master.

Discussion:
]; executableToolDepends = [ emacs ]; postInstall = '' <del> $out/bin/agda -c --no-main $(find $out/share -name Primitive.agda) </del> <ins> # Separate loops to avoid internal error files=($out/share/*-ghc-*/Agda-*/lib/prim/Agda/{Primitive.agda,Builtin/*.agda}) for f in "''${files[@]}" do $out/bin/agda $f done for f in "''${files[@]}" do $out/bin/agda -c --no-main $f done </ins> $out/bin/agda-mode compile ''; homepage = "http://wiki.portal.chalmers.se/agda/"; description = "A dependently typed functional programming language and proof assistant"; license = "unknown"; <del> maintainers = with stdenv.lib.maintainers; [ abbradar ]; </del> <ins> maintainers = with stdenv.lib.maintainers; [ abbradar mudri ]; </ins> }) {inherit (pkgs) emacs;}; "Agda-executable" = callPackage

license = stdenv.lib.licenses.cc-by-40; platforms = stdenv.lib.platforms.unix; maintainers = with stdenv.lib.maintainers; [ fuuzetsu ]; <ins> broken = true;  # replaced by constructive-sheaf-semantics </ins> }; <del> }) </del>  No newline at end of file <ins> }) </ins>

license = stdenv.lib.licenses.mit; platforms = stdenv.lib.platforms.unix; maintainers = with maintainers; [ fuuzetsu ]; <ins> broken = true; </ins> }; })

license = stdenv.lib.licenses.bsd3; platforms = stdenv.lib.platforms.unix; maintainers = with stdenv.lib.maintainers; [ fuuzetsu ]; <ins> broken = true;  # largely replaced by HoTT-Agda </ins> }; })

{ stdenv, agda, fetchgit }: agda.mkDerivation (self: rec { <del> version = "d598f35d88596c5a63766a7188a0c0144e467c8c"; </del> <ins> version = "0dca24a81d417db2ae8fc871eccb7776f7eae952"; </ins> name = "agda-prelude-${version}"; src = fetchgit { url = "https://github.com/UlfNorell/agda-prelude.git"; rev = version; <del> sha256 = "bdcffb675d0ad1bafa2b47f581b6a9b90347ae739b6218f89f365fda2cc4f8c8"; </del> <ins> sha256 = "0gwfgvj96i1mx5v01bi46h567d1q1fbgvzv6z8zv91l2jhybwff5"; </ins> }; topSourceDirectories = [ "src" ];

description = "Programming library for Agda"; license = stdenv.lib.licenses.mit; platforms = stdenv.lib.platforms.unix; <del> maintainers = with maintainers; [ fuuzetsu ]; </del> <ins> maintainers = with maintainers; [ fuuzetsu mudri ]; </ins> }; })

<del> { stdenv, agda, fetchgit, ghcWithPackages }: </del> <ins> { stdenv, agda, fetchurl, ghcWithPackages }: </ins> agda.mkDerivation (self: rec { <del> version = "2.4.2.3"; </del> <ins> version = "v0.12"; </ins> name = "agda-stdlib-${version}"; <del> src = fetchgit { url = "git://github.com/agda/agda-stdlib"; rev = "9c9b3cb28f9a7d39a256890a1469c1a3f7fc4faf"; sha256 = "521899b820e70abbae7cb30008b87a2f8676bc6265b78865e42982fc2e5c972f"; </del> <ins> src = fetchurl { url = "https://github.com/agda/agda-stdlib/archive/${version}.tar.gz"; sha256 = "11qf87hxx3g0n8i6nkp4vqvh3i0gal6g812p0w2n4k7711nvrp9g"; </ins> }; nativeBuildInputs = [ (ghcWithPackages (self : [ self.filemanip ])) ];

description = "A standard library for use with the Agda compiler"; license = stdenv.lib.licenses.mit; platforms = stdenv.lib.platforms.unix; <del> maintainers = with maintainers; [ jwiegley fuuzetsu ]; </del> <ins> maintainers = with maintainers; [ jwiegley fuuzetsu mudri ]; </ins> }; })

license = stdenv.lib.licenses.bsd3; platforms = stdenv.lib.platforms.unix; maintainers = with stdenv.lib.maintainers; [ fuuzetsu ]; <ins> broken = true; </ins> }; })