ats2: format

+19 -13
+19 -13
pkgs/development/compilers/ats2/default.nix
··· 1 - { lib, stdenv, fetchurl, gmp 2 - , withEmacsSupport ? true 3 - , withContrib ? true }: 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + gmp, 6 + withEmacsSupport ? true, 7 + withContrib ? true, 8 + }: 4 9 5 10 let 6 11 versionPkg = "0.4.2"; ··· 10 15 hash = "sha256-m0hfBLsaNiLaIktcioK+ZtWUsWht3IDSJ6CzgJmS06c="; 11 16 }; 12 17 13 - postInstallContrib = lib.optionalString withContrib 14 - '' 18 + postInstallContrib = lib.optionalString withContrib '' 15 19 local contribDir=$out/lib/ats2-postiats-*/ ; 16 20 mkdir -p $contribDir ; 17 21 tar -xzf "${contrib}" --strip-components 1 -C $contribDir ; 18 22 ''; 19 23 20 - postInstallEmacs = lib.optionalString withEmacsSupport 21 - '' 24 + postInstallEmacs = lib.optionalString withEmacsSupport '' 22 25 local siteLispDir=$out/share/emacs/site-lisp/ats2 ; 23 26 mkdir -p $siteLispDir ; 24 27 install -m 0644 -v ./utils/emacs/*.el $siteLispDir ; ··· 53 56 let 54 57 hookFiles = [ ./setup-hook.sh ] ++ lib.optional withContrib ./setup-contrib-hook.sh; 55 58 in 56 - builtins.toFile "setupHook.sh" 57 - (lib.concatMapStringsSep "\n" builtins.readFile hookFiles); 59 + builtins.toFile "setupHook.sh" (lib.concatMapStringsSep "\n" builtins.readFile hookFiles); 58 60 59 61 postInstall = postInstallContrib + postInstallEmacs; 60 62 61 63 meta = with lib; { 62 64 description = "Functional programming language with dependent types"; 63 - homepage = "http://www.ats-lang.org"; 64 - license = licenses.gpl3Plus; 65 - platforms = platforms.unix; 66 - maintainers = with maintainers; [ thoughtpolice ttuegel bbarker ]; 65 + homepage = "http://www.ats-lang.org"; 66 + license = licenses.gpl3Plus; 67 + platforms = platforms.unix; 68 + maintainers = with maintainers; [ 69 + thoughtpolice 70 + ttuegel 71 + bbarker 72 + ]; 67 73 }; 68 74 }