From 2805a7bf1091f5b235b937b624e2d7ea302fd669 Mon Sep 17 00:00:00 2001 From: Tomo <68489118+tomodachi94@users.noreply.github.com> Date: Tue, 16 Apr 2024 12:54:05 -0700 Subject: [PATCH] pkgs/ultisnips-vscode: import Permalink: https://github.com/tomodachi94/tomopkgs/blob/61d2af61415a60997e10ac62a85b66ee1dbff4a6/pkgs/ultisnips-vscode/default.nix Ref: 61d2af61415a60997e10ac62a85b66ee1dbff4a6 --- pkgs/all/ultisnips-vscode.nix | 32 ++++++++++++++++++++++++++++++++ pkgs/default.nix | 1 + 2 files changed, 33 insertions(+) create mode 100644 pkgs/all/ultisnips-vscode.nix diff --git a/pkgs/all/ultisnips-vscode.nix b/pkgs/all/ultisnips-vscode.nix new file mode 100644 index 0000000..3db1c39 --- /dev/null +++ b/pkgs/all/ultisnips-vscode.nix @@ -0,0 +1,32 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication { + pname = "ultisnips-vscode"; + version = "unstable-2022-06-04"; + pyproject = true; + + src = fetchFromGitHub { + owner = "erietz"; + repo = "ultisnips-vscode"; + rev = "e59ba44087765b61d55d81d53bdd8f34b54db704"; + hash = "sha256-Mru8oypy3zBvA3587nQ74BZ1gtCM3X9xkuV2E9FLW6w="; + }; + + nativeBuildInputs = with python3.pkgs; [ + setuptools + wheel + ]; + + pythonImportChecks = [ "ultisnips2vscode" ]; + + meta = with lib; { + description = "Mass convert UltiSnips snippets to JSON for VSCode"; + homepage = "https://github.com/erietz/ultisnips-vscode"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ tomodachi94 ]; + mainProgram = "ultisnips-vscode"; + }; +} \ No newline at end of file diff --git a/pkgs/default.nix b/pkgs/default.nix index eccaa5b..8b92d94 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -7,4 +7,5 @@ in developercolorpicker = cp ./darwin/developercolorpicker.nix { }; hugo-bearblog = cp ./all/hugo-bearblog.nix { }; spyglass = cp ./all/spyglass { }; + ultisnips-vscode = cp ./all/ultisnips-vscode.nix { }; }