tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ats2: format
Austin Horstman
1 year ago
3de54e3d
1c835f97
+19
-13
1 changed file
expand all
collapse all
unified
split
pkgs
development
compilers
ats2
default.nix
+19
-13
pkgs/development/compilers/ats2/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, gmp
2
2
-
, withEmacsSupport ? true
3
3
-
, withContrib ? true }:
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchurl,
5
5
+
gmp,
6
6
+
withEmacsSupport ? true,
7
7
+
withContrib ? true,
8
8
+
}:
4
9
5
10
let
6
11
versionPkg = "0.4.2";
···
10
15
hash = "sha256-m0hfBLsaNiLaIktcioK+ZtWUsWht3IDSJ6CzgJmS06c=";
11
16
};
12
17
13
13
-
postInstallContrib = lib.optionalString withContrib
14
14
-
''
18
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
20
-
postInstallEmacs = lib.optionalString withEmacsSupport
21
21
-
''
24
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
56
-
builtins.toFile "setupHook.sh"
57
57
-
(lib.concatMapStringsSep "\n" builtins.readFile hookFiles);
59
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
63
-
homepage = "http://www.ats-lang.org";
64
64
-
license = licenses.gpl3Plus;
65
65
-
platforms = platforms.unix;
66
66
-
maintainers = with maintainers; [ thoughtpolice ttuegel bbarker ];
65
65
+
homepage = "http://www.ats-lang.org";
66
66
+
license = licenses.gpl3Plus;
67
67
+
platforms = platforms.unix;
68
68
+
maintainers = with maintainers; [
69
69
+
thoughtpolice
70
70
+
ttuegel
71
71
+
bbarker
72
72
+
];
67
73
};
68
74
}