27 lines
633 B
Nix
27 lines
633 B
Nix
|
{ gitpkgs ? import /home/steveej/src/github/NixOS/nixpkgs {}
|
||
|
, pkgs ? gitpkgs
|
||
|
, name ? "generic"
|
||
|
, version ? "Stable"
|
||
|
, extraBuildInputs ? []
|
||
|
}:
|
||
|
let
|
||
|
commonVimRC = ''
|
||
|
'';
|
||
|
in pkgs.stdenv.mkDerivation {
|
||
|
inherit name;
|
||
|
buildInputs = with pkgs; [
|
||
|
( import ./vim-pandoc.nix { pkgs=gitpkgs; commonRC=commonVimRC; })
|
||
|
pandoc
|
||
|
texlive.combined.scheme-medium
|
||
|
python27Packages.pandocfilters
|
||
|
python27Packages.htmltreediff
|
||
|
python27Packages.html5lib
|
||
|
python27Packages.dbus-python
|
||
|
] ++ extraBuildInputs;
|
||
|
shellHook = ''
|
||
|
pandocname=pandoc_${pkgs.pandoc.version}
|
||
|
setPS1 $pandocname
|
||
|
unset name
|
||
|
'';
|
||
|
}
|