Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. { stdenv, fetchFromGitHub, unzip, nodejs}:
  2.  
  3. {
  4. vim = stdenv.mkDerivation rec {
  5.  
  6. pname = "vim";
  7. version = "1.12.0-patched";
  8.  
  9. src = fetchFromGitHub {
  10. repo = "Vim";
  11. owner = "stammon";
  12. rev = "c770bfa261a11744b496e110c0e3a3c5a25240fe";
  13. sha256 = "0382ds856zsp001sj76g3m01w7mgj5ik7bjc6azm4vlc379nlbc2";
  14. };
  15.  
  16. # sourceRoot = name;
  17.  
  18. nativeBuildInputs = [ unzip nodejs];
  19.  
  20. buildCommand = ''
  21. cd $src
  22. npm ci
  23. npm run build-package
  24. pwd
  25. ls
  26. unzip -d "$out" $src
  27. '';
  28.  
  29.  
  30. meta = with stdenv.lib; {
  31. license = licenses.mit;
  32. maintainers = [ maintainers.stammon ];
  33. # platforms = [ "x86_64-linux" ];
  34. };
  35. };
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement