You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vscodium.nix 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. { stdenv, callPackage, fetchurl }:
  2. let
  3. inherit (stdenv.hostPlatform) system;
  4. plat = {
  5. x86_64-linux = "linux-x64";
  6. x86_64-darwin = "darwin";
  7. }.${system};
  8. archive_fmt = if system == "x86_64-darwin" then "zip" else "tar.gz";
  9. sha256 = {
  10. x86_64-linux = "15m7mfb8gmx3pwydc37blj0rxwgmkrnqfj6y79rpqlr2dg92gwlb";
  11. x86_64-darwin = "080k4fnfa5ylmmya6zprgci3gld9mrbqsfnk53hgcny91ykl5xj5";
  12. }.${system};
  13. sourceRoot = {
  14. x86_64-linux = ".";
  15. x86_64-darwin = "";
  16. }.${system};
  17. in
  18. callPackage ./generic.nix rec {
  19. inherit sourceRoot;
  20. version = "1.38.1";
  21. pname = "vscodium";
  22. executableName = "codium";
  23. longName = "VSCodium";
  24. shortName = "Codium";
  25. src = fetchurl {
  26. url = "https://github.com/VSCodium/vscodium/releases/download/${version}/VSCodium-${plat}-${version}.${archive_fmt}";
  27. inherit sha256;
  28. };
  29. meta = with stdenv.lib; {
  30. description = ''
  31. Open source source code editor developed by Microsoft for Windows,
  32. Linux and macOS (VS Code without MS branding/telemetry/licensing)
  33. '';
  34. longDescription = ''
  35. Open source source code editor developed by Microsoft for Windows,
  36. Linux and macOS. It includes support for debugging, embedded Git
  37. control, syntax highlighting, intelligent code completion, snippets,
  38. and code refactoring. It is also customizable, so users can change the
  39. editor's theme, keyboard shortcuts, and preferences
  40. '';
  41. homepage = https://github.com/VSCodium/vscodium;
  42. downloadPage = https://github.com/VSCodium/vscodium/releases;
  43. license = licenses.mit;
  44. maintainers = with maintainers; [];
  45. platforms = [ "x86_64-linux" "x86_64-darwin" ];
  46. };
  47. }