Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1c8fea18e265
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f2c99c61cffe
Choose a head ref
  • 12 commits
  • 11 files changed
  • 3 contributors

Commits on Dec 23, 2018

  1. vimPlugins: Update

    timokau committed Dec 23, 2018
    Copy the full SHA
    1e25b74 View commit details

Commits on Dec 24, 2018

  1. Copy the full SHA
    ce7899b View commit details
  2. vimUtils: represent vim plugins as derivations

    Vim plugins were previously represented as strings by default,
    necessitating a `knownPlugins` set. Backwards compatibility is kept
    (strings are still accepted), so vam plugins should continue to work.
    timokau committed Dec 24, 2018
    Copy the full SHA
    b352318 View commit details
  3. vimUtils: add dependency logic to nativeImpl

    nativeImpl previously simply ignored dependency information.
    timokau committed Dec 24, 2018
    Copy the full SHA
    8e8a09b View commit details

Commits on Dec 27, 2018

  1. vimPlugins: Update

    timokau committed Dec 27, 2018
    Copy the full SHA
    edf8b98 View commit details
  2. Copy the full SHA
    96b6396 View commit details
  3. vimPlugins: use fixed point

    timokau committed Dec 27, 2018
    Copy the full SHA
    af46529 View commit details

Commits on Dec 28, 2018

  1. vimPlugins.taglist-vim: fix build

    The override actually broke the build, no idea why it was added
    originally. The build works fine without it.
    timokau committed Dec 28, 2018
    Copy the full SHA
    58b4351 View commit details
  2. Merge pull request #52767 from timokau/vim-plugin-updates

    Fix vim-plugin dependencies
    timokau authored Dec 28, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    22d0f32 View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d84ac4f View commit details
  4. Copy the full SHA
    bc7aa5d View commit details
  5. cockroachdb: 2.1.1 -> 2.1.3

    Signed-off-by: Austin Seipp <aseipp@pobox.com>
    thoughtpolice committed Dec 28, 2018
    Copy the full SHA
    f2c99c6 View commit details
7 changes: 6 additions & 1 deletion doc/languages-frameworks/vim.section.md
Original file line number Diff line number Diff line change
@@ -48,21 +48,24 @@ neovim.override {

## Managing plugins with Vim packages

To store you plugins in Vim packages the following example can be used:
To store you plugins in Vim packages (the native vim plugin manager, see `:help packages`) the following example can be used:

```
vim_configurable.customize {
vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; {
# loaded on launch
start = [ youcompleteme fugitive ];
# manually loadable by calling `:packadd $plugin-name`
# however, if a vim plugin has a dependency that is not explicitly listed in
# opt that dependency will always be added to start to avoid confusion.
opt = [ phpCompletion elm-vim ];
# To automatically load a plugin when opening a filetype, add vimrc lines like:
# autocmd FileType php :packadd phpCompletion
};
}
```

`myVimPackage` is an arbitrary name for the generated package. You can choose any name you like.
For Neovim the syntax is:

```
@@ -74,6 +77,8 @@ neovim.override {
packages.myVimPackage = with pkgs.vimPlugins; {
# see examples below how to use custom packages
start = [ ];
# If a vim plugin has a dependency that is not explicitly listed in
# opt that dependency will always be added to start to avoid confusion.
opt = [ ];
};
};
6 changes: 3 additions & 3 deletions pkgs/applications/science/electronics/verilog/default.nix
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@

stdenv.mkDerivation rec {
name = "iverilog-${version}";
version = "2017.08.12";
version = "2018.12.15";

src = fetchFromGitHub {
owner = "steveicarus";
repo = "iverilog";
rev = "ac87138c44cd6089046668c59a328b4d14c16ddc";
sha256 = "1npv0533h0h2wxrxkgiaxqiasw2p4kj2vv5bd69w5xld227xcwpg";
rev = "7cd078e7ab184069b3b458fe6df7e83962254816";
sha256 = "1zc7lsa77dbsxjfz7vdgclmg97r0kw08xss7yfs4vyv5v5gnn98d";
};

patchPhase = ''
10 changes: 10 additions & 0 deletions pkgs/development/libraries/fflas-ffpack/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ stdenv, fetchFromGitHub, autoreconfHook, givaro, pkgconfig, blas
, fetchpatch
, gmpxx
, optimize ? false # impure
}:
@@ -14,6 +15,15 @@ stdenv.mkDerivation rec {
sha256 = "1cqhassj2dny3gx0iywvmnpq8ca0d6m82xl5rz4mb8gaxr2kwddl";
};

patches = [
# https://github.com/linbox-team/fflas-ffpack/issues/146
(fetchpatch {
name = "fix-flaky-test-fgemm-check.patch";
url = "https://github.com/linbox-team/fflas-ffpack/commit/d8cd67d91a9535417a5cb193cf1540ad6758a3db.patch";
sha256 = "1gnfc616fvnlr0smvz6lb2d445vn8fgv6vqcr6pwm3dj4wa6v3b3";
})
];

checkInputs = [
gmpxx
];
54 changes: 54 additions & 0 deletions pkgs/misc/vim-plugins/build-vim-plugin.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ stdenv
, rtpPath ? "share/vim-plugins"
, vim
}:

rec {
addRtp = path: attrs: derivation:
derivation // { rtp = "${derivation}/${path}"; } // {
overrideAttrs = f: buildVimPlugin (attrs // f attrs);
};

buildVimPlugin = attrs@{
name ? "${attrs.pname}-${attrs.version}",
namePrefix ? "vimplugin-",
src,
unpackPhase ? "",
configurePhase ? "",
buildPhase ? "",
preInstall ? "",
postInstall ? "",
path ? (builtins.parseDrvName name).name,
addonInfo ? null,
...
}:
addRtp "${rtpPath}/${path}" attrs (stdenv.mkDerivation (attrs // {
name = namePrefix + name;

inherit unpackPhase configurePhase buildPhase addonInfo preInstall postInstall;

installPhase = ''
runHook preInstall
target=$out/${rtpPath}/${path}
mkdir -p $out/${rtpPath}
cp -r . $target
# build help tags
if [ -d "$target/doc" ]; then
${vim}/bin/vim -N -u NONE -i NONE -n -E -s -c "helptags $1/doc" +quit! || echo "docs to build failed"
fi
if [ -n "$addonInfo" ]; then
echo "$addonInfo" > $target/addon-info.json
fi
runHook postInstall
'';
}));

buildVimPluginFrom2Nix = attrs: buildVimPlugin ({
buildPhase = ":";
configurePhase =":";
} // attrs);
}
10 changes: 4 additions & 6 deletions pkgs/misc/vim-plugins/default.nix
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@ let

inherit (vimUtils.override {inherit vim;}) buildVimPluginFrom2Nix;

generated = callPackage ./generated.nix {
inherit buildVimPluginFrom2Nix;
plugins = callPackage ./generated.nix {
inherit buildVimPluginFrom2Nix overrides;
};

# TL;DR
@@ -22,10 +22,8 @@ let
inherit llvmPackages;
};

overriden = generated // (overrides generated);

aliases = lib.optionalAttrs (config.allowAliases or true) (import ./aliases.nix lib overriden);
aliases = lib.optionalAttrs (config.allowAliases or true) (import ./aliases.nix lib plugins);

in

overriden // aliases
plugins // aliases
Loading