ats2: format

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