tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Merge branch 'master' into staging
obadz
9 years ago
1ba32c54
6389f9b3
+91
-13
10 changed files
expand all
collapse all
unified
split
pkgs
applications
science
math
maxima
default.nix
sage
default.nix
development
haskell-modules
configuration-common.nix
generic-stack-builder.nix
patches
spy.patch
tools
build-managers
bear
default.nix
rtags
default.nix
misc
vim-plugins
default.nix
vim-plugin-names
top-level
all-packages.nix
+4
-4
pkgs/applications/science/math/maxima/default.nix
···
1
1
-
{ stdenv, fetchurl, sbcl, texinfo, perl, makeWrapper, rlwrap ? null, tk ? null, gnuplot ? null }:
1
1
+
{ stdenv, fetchurl, sbcl, texinfo, perl, python, makeWrapper, rlwrap ? null, tk ? null, gnuplot ? null }:
2
2
3
3
let
4
4
name = "maxima";
5
5
-
version = "5.36.1";
5
5
+
version = "5.38.1";
6
6
7
7
searchPath =
8
8
stdenv.lib.makeBinPath
···
13
13
14
14
src = fetchurl {
15
15
url = "mirror://sourceforge/${name}/${name}-${version}.tar.gz";
16
16
-
sha256 = "0x1rk659sn3cq0n5c90848ilzr1gb1wf0072fl6jhkdq00qgh2s0";
16
16
+
sha256 = "1p6646rvq43hk09msyp0dk50cqpkh07mf4x0bc2fqisqmcv6b1hf";
17
17
};
18
18
19
19
-
buildInputs = [sbcl texinfo perl makeWrapper];
19
19
+
buildInputs = [sbcl texinfo perl python makeWrapper];
20
20
21
21
postInstall = ''
22
22
# Make sure that maxima can find its runtime dependencies.
+4
-2
pkgs/applications/science/math/sage/default.nix
···
7
7
name = "sage-6.8";
8
8
9
9
src = fetchurl {
10
10
-
url = "mirror://sagemath/${name}.tar.gz";
10
10
+
url = "http://old.files.sagemath.org/src-old/${name}.tar.gz";
11
11
sha256 = "102mrzzi215g1xn5zgcv501x9sghwg758jagx2jixvg1rj2jijj9";
12
12
};
13
13
···
18
18
19
19
enableParallelBuilding = true;
20
20
21
21
+
hardeningDisable = [ "format" ];
22
22
+
21
23
preConfigure = ''
22
24
export SAGE_NUM_THREADS=$NIX_BUILD_CORES
23
25
export SAGE_ATLAS_ARCH=fast
24
26
mkdir -p $out/sageHome
25
27
export HOME=$out/sageHome
28
28
+
export CPPFLAGS="-P"
26
29
'';
27
30
28
31
preBuild = "patchShebangs build";
···
30
33
installPhase = ''DESTDIR=$out make install'';
31
34
32
35
meta = {
33
33
-
broken = true;
34
36
homepage = "http://www.sagemath.org";
35
37
description = "A free open source mathematics software system";
36
38
license = stdenv.lib.licenses.gpl2Plus;
+3
pkgs/development/haskell-modules/configuration-common.nix
···
998
998
'';
999
999
});
1000
1000
1001
1001
+
# https://bitbucket.org/ssaasen/spy/pull-requests/3/fsnotify-dropped-system-filepath
1002
1002
+
spy = appendPatch super.spy ./patches/spy.patch;
1003
1003
+
1001
1004
}
+3
-2
pkgs/development/haskell-modules/generic-stack-builder.nix
···
19
19
STACK_PLATFORM_VARIANT="nix";
20
20
STACK_IN_NIX_SHELL=1;
21
21
STACK_IN_NIX_EXTRA_ARGS =
22
22
-
concatMap (pkg: ["--extra-lib-dirs=${pkg}/lib"
23
23
-
"--extra-include-dirs=${pkg}/include"]) buildInputs ++
22
22
+
concatMap (pkg: ["--extra-lib-dirs=${getLib pkg}/lib"
23
23
+
"--extra-include-dirs=${getDev pkg}/include"]) buildInputs ++
24
24
extraArgs;
25
25
26
26
# XXX: workaround for https://ghc.haskell.org/trac/ghc/ticket/11042.
27
27
LD_LIBRARY_PATH = makeLibraryPath (LD_LIBRARY_PATH ++ buildInputs);
28
28
+
# ^^^ Internally uses `getOutput "lib"` (equiv. to getLib)
28
29
29
30
preferLocalBuild = true;
30
31
+26
pkgs/development/haskell-modules/patches/spy.patch
···
1
1
+
diff --git a/src/Spy/Watcher.hs b/src/Spy/Watcher.hs
2
2
+
index 8512613..4df67d4 100644
3
3
+
--- a/src/Spy/Watcher.hs
4
4
+
+++ b/src/Spy/Watcher.hs
5
5
+
@@ -50,7 +50,7 @@ plainFormat = Plain
6
6
+
spy :: Spy -> IO b -> IO ()
7
7
+
spy config after = withManager $ \wm ->
8
8
+
runIndefinitely
9
9
+
- (watchTree wm (decodeString $ dir config)
10
10
+
+ (watchTree wm (dir config)
11
11
+
(not . skipEvent config . eventPath)
12
12
+
(handleEvent config))
13
13
+
(const after)
14
14
+
@@ -106,9 +106,9 @@ eventTime (Modified _ t) = t
15
15
+
eventTime (Removed _ t) = t
16
16
+
17
17
+
eventPath :: Event -> FilePath
18
18
+
-eventPath (Added fp _) = encodeString fp
19
19
+
-eventPath (Modified fp _) = encodeString fp
20
20
+
-eventPath (Removed fp _) = encodeString fp
21
21
+
+eventPath (Added fp _) = fp
22
22
+
+eventPath (Modified fp _) = fp
23
23
+
+eventPath (Removed fp _) = fp
24
24
+
25
25
+
eventType :: Event -> FilePath
26
26
+
eventType (Added _ _) = "Added"
+32
pkgs/development/tools/build-managers/bear/default.nix
···
1
1
+
{ stdenv, fetchFromGitHub, cmake, python }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
name = "bear-${version}";
5
5
+
version = "2.2.0";
6
6
+
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "rizsotto";
9
9
+
repo = "Bear";
10
10
+
rev = version;
11
11
+
sha256 = "08llfqg8y6d7vfwaw5plrk1rrqzs0ywi2ldnlwvy917603971rg0";
12
12
+
};
13
13
+
14
14
+
nativeBuildInputs = [ cmake ];
15
15
+
buildInputs = [ python ]; # just for shebang of bin/bear
16
16
+
17
17
+
doCheck = false; # all fail
18
18
+
19
19
+
meta = with stdenv.lib; {
20
20
+
description = "Tool that generates a compilation database for clang tooling";
21
21
+
longDescription = ''
22
22
+
Note: the bear command is very useful to generate compilation commands
23
23
+
e.g. for YouCompleteMe. You just enter your development nix-shell
24
24
+
and run `bear make`. It's not perfect, but it gets a long way.
25
25
+
'';
26
26
+
homepage = https://github.com/rizsotto/Bear;
27
27
+
license = licenses.gpl3Plus;
28
28
+
platforms = platforms.unix;
29
29
+
maintainers = [ maintainers.vcunat ];
30
30
+
};
31
31
+
}
32
32
+
+3
-4
pkgs/development/tools/rtags/default.nix
···
2
2
3
3
stdenv.mkDerivation rec {
4
4
name = "rtags-${version}";
5
5
-
version = "git-2016-04-29";
6
6
-
rev = "233543d343bf86fa31c35ee21242fa2da3a965ab";
5
5
+
version = "2.3";
7
6
8
7
buildInputs = [ cmake llvmPackages.llvm openssl llvmPackages.clang emacs ];
9
8
···
13
12
'';
14
13
15
14
src = fetchgit {
16
16
-
inherit rev;
15
15
+
rev = "refs/tags/v${version}";
17
16
fetchSubmodules = true;
18
17
url = "https://github.com/andersbakken/rtags.git";
19
19
-
sha256 = "10j1s7kvnd5823p1kgx3hyca9jz9j27y6xk0q208p095wf8hk105";
18
18
+
sha256 = "05kzch88x2wiimygfli6vsr9i5hzgkybsya8qx4zvb6daip4b7yf";
20
19
};
21
20
22
21
meta = {
+13
-1
pkgs/misc/vim-plugins/default.nix
···
13
13
14
14
# TL;DR
15
15
# Add your plugin to ./vim-plugin-names
16
16
-
# Generate via `vim-plugin-names-to-nix`
16
16
+
# Regenerate via `nix-build -Q -A vimPlugins.pluginnames2nix; ./result/bin/vim-plugin-names-to-nix`
17
17
+
# Copy the generated expression(s) into this file.
17
18
# If plugin is complicated then make changes to ./vim2nix/additional-nix-code
18
19
19
20
# This attrs contains two sections:
···
880
881
url = "git://github.com/mpickering/hlint-refactor-vim";
881
882
rev = "fffb044ecef854a82c5c2efda252e09044ba03e0";
882
883
sha256 = "0z8d31arfy9aidg1dwj5msnnx799d9r7njkgh51z695w6ayxn6p8";
884
884
+
};
885
885
+
dependencies = [];
886
886
+
887
887
+
};
888
888
+
889
889
+
vim-indent-guides = buildVimPluginFrom2Nix { # created by nix#NixDerivation
890
890
+
name = "vim-indent-guides-2016-04-17";
891
891
+
src = fetchgit {
892
892
+
url = "git://github.com/nathanaelkane/vim-indent-guides";
893
893
+
rev = "018298ead9d3aa9cd3b4ae222f81022a33978b09";
894
894
+
sha256 = "0zyrs9r3vza2kqhqir6qpkygy6yljpn877bvycspv89ljzczmwrs";
883
895
};
884
896
dependencies = [];
885
897
+1
pkgs/misc/vim-plugins/vim-plugin-names
···
68
68
"github:mhinz/vim-startify"
69
69
"github:mkasa/lushtags"
70
70
"github:mpickering/hlint-refactor-vim"
71
71
+
"github:nathanaelkane/vim-indent-guides"
71
72
"github:nbouscal/vim-stylish-haskell"
72
73
"github:neovimhaskell/haskell-vim"
73
74
"github:osyo-manga/shabadou.vim"
+2
pkgs/top-level/all-packages.nix
···
6145
6145
6146
6146
bazel = callPackage ../development/tools/build-managers/bazel { jdk = openjdk8; };
6147
6147
6148
6148
+
bear = callPackage ../development/tools/build-managers/bear { };
6149
6149
+
6148
6150
bin_replace_string = callPackage ../development/tools/misc/bin_replace_string { };
6149
6151
6150
6152
binutils = if stdenv.isDarwin then self.darwin.binutils else self.binutils-raw;