Last active
September 19, 2018 02:40
-
-
Save countoren/34ce9b33078c1d58529b5b1c349e88f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ mkDerivation, fetchFromGitHub, makeWrapper, name, vimrcDrv }: | |
mkDerivation { | |
name = name; | |
src = fetchFromGitHub { | |
owner = "countoren"; | |
repo = "Macvim-8.0.127-python"; | |
rev = "c81e676a6b2dc08c736a25bf4b3260573ce68dc4"; | |
sha256 = "1cpsy2na3lfg2mh0h3z4zp7ldn8rrwycvrb9mzw4vhvif636g2rk"; | |
}; | |
buildInputs = [ makeWrapper ]; | |
postInstall = '' | |
mkdir -p $out/Applications | |
cp -rfv $src/MacVim.app $out/Applications | |
chmod 755 $out/Applications/MacVim.app/Contents/MacOS/* \ | |
$out/Applications/MacVim.app/Contents/bin/* | |
wrapProgram $out/Applications/MacVim.app/Contents/bin/mvim --add-flags '-u ${vimrcDrv} "$@"' | |
mkdir -p $out/bin | |
ln -sf $out/Applications/MacVim.app/Contents/bin/mvim $out/bin/mvim | |
ln -sf $out/bin/mvim $out/bin/vim | |
ln -sf $out/bin/mvim $out/bin/vi | |
ln -sf $out/bin/mvim $out/bin/gvim | |
''; | |
} | |
results with this error: | |
no Makefile, doing nothing | |
installing | |
install flags: install | |
make: *** No rule to make target 'install'. Stop. | |
builder for '/nix/store/18vrdr5kvkbayr6z1bcd3pad2j5g1r7x-omvim.drv' failed with exit code 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment