nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 67 lines 1.5 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 alex, 6 happy, 7 Agda, 8 buildPackages, 9 ghcWithPackages, 10}: 11 12stdenv.mkDerivation rec { 13 version = "1.1.2"; 14 pname = "cedille"; 15 16 src = fetchFromGitHub { 17 owner = "cedille"; 18 repo = "cedille"; 19 rev = "v${version}"; 20 sha256 = "1j745q9sd32fhcb96wjq6xvyqq1k6imppjnya6x0n99fyfnqzvg9"; 21 fetchSubmodules = true; 22 }; 23 24 patches = [ 25 ./Fix-to-string.agda-to-compile-with-Agda-2.6.1.patch 26 ]; 27 28 nativeBuildInputs = [ 29 alex 30 happy 31 ]; 32 buildInputs = [ 33 Agda 34 (ghcWithPackages (ps: [ ps.ieee ])) 35 ]; 36 37 LANG = "en_US.UTF-8"; 38 LOCALE_ARCHIVE = lib.optionalString ( 39 stdenv.buildPlatform.libc == "glibc" 40 ) "${buildPackages.glibcLocales}/lib/locale/locale-archive"; 41 42 postPatch = '' 43 patchShebangs create-libraries.sh 44 ''; 45 46 installPhase = '' 47 install -Dm755 -t $out/bin/ cedille 48 install -Dm755 -t $out/bin/ core/cedille-core 49 install -Dm644 -t $out/share/info docs/info/cedille-info-main.info 50 51 mkdir -p $out/lib/ 52 cp -r lib/ $out/lib/cedille/ 53 ''; 54 55 meta = with lib; { 56 description = "Interactive theorem-prover and dependently typed programming language, based on extrinsic (aka Curry-style) type theory"; 57 homepage = "https://cedille.github.io/"; 58 license = licenses.mit; 59 maintainers = with maintainers; [ mpickering ]; 60 platforms = platforms.unix; 61 62 # Broken due to Agda update. See 63 # https://github.com/NixOS/nixpkgs/pull/129606#issuecomment-881107449. 64 broken = true; 65 hydraPlatforms = platforms.none; 66 }; 67}