From 5c523b711356487da18632b2f3816ec41d6cd894 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Mon, 14 Nov 2022 10:44:09 +0400 Subject: [PATCH] Add idris-vscode --- flake.lock | 57 ++++++++++++++++++++-- flake.nix | 2 + profiles/applications/vscodium/default.nix | 6 ++- 3 files changed, 61 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 4202706..2652be1 100644 --- a/flake.lock +++ b/flake.lock @@ -278,6 +278,21 @@ "type": "github" } }, + "flake-utils_4": { + "locked": { + "lastModified": 1659877975, + "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "himalaya": { "inputs": { "flake-compat": "flake-compat_4", @@ -489,6 +504,25 @@ "type": "github" } }, + "nix-vscode-marketplace": { + "inputs": { + "flake-utils": "flake-utils_4", + "nixpkgs": "nixpkgs_10" + }, + "locked": { + "lastModified": 1665992943, + "narHash": "sha256-jg+cLRhxY4zDK1L7VkkeojUoRA/GfTNTcyXtXs6dM/s=", + "owner": "AmeerTaweel", + "repo": "nix-vscode-marketplace", + "rev": "2e9508c0cd2c2daa6323f8443bf123c7112db047", + "type": "github" + }, + "original": { + "owner": "AmeerTaweel", + "repo": "nix-vscode-marketplace", + "type": "github" + } + }, "nixos-fhs-compat": { "locked": { "lastModified": 1638624912, @@ -570,6 +604,22 @@ } }, "nixpkgs_10": { + "locked": { + "lastModified": 1660464579, + "narHash": "sha256-kzA9rwh0wS6CwUnFHAQ7dhJCowMPfRbvixVeOKnUmjo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "b02538b16f6c5e1dbfce1033b27946e25c019b3b", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_11": { "locked": { "lastModified": 1665259268, "narHash": "sha256-ONFhHBLv5nZKhwV/F2GOH16197PbvpyWhoO0AOyktkU=", @@ -585,7 +635,7 @@ "type": "github" } }, - "nixpkgs_11": { + "nixpkgs_12": { "locked": { "lastModified": 1599773960, "narHash": "sha256-5bL52aaUOOyOBjgKh9/6jQlFbeE+WfVX7dpvjohmD+w=", @@ -743,8 +793,9 @@ "nheko": "nheko", "nix": "nix", "nix-direnv": "nix-direnv", + "nix-vscode-marketplace": "nix-vscode-marketplace", "nixos-fhs-compat": "nixos-fhs-compat", - "nixpkgs": "nixpkgs_10", + "nixpkgs": "nixpkgs_11", "nixpkgs-old": "nixpkgs-old", "nixpkgs-wayland": "nixpkgs-wayland", "rycee": "rycee", @@ -807,7 +858,7 @@ "simple-osd-daemons": { "inputs": { "crate2nix": "crate2nix", - "nixpkgs": "nixpkgs_11" + "nixpkgs": "nixpkgs_12" }, "locked": { "lastModified": 1651606905, diff --git a/flake.nix b/flake.nix index 30b7dcc..44cfe15 100644 --- a/flake.nix +++ b/flake.nix @@ -94,6 +94,8 @@ url = "github:nixos/flake-registry"; flake = false; }; + + nix-vscode-marketplace.url = "github:AmeerTaweel/nix-vscode-marketplace"; }; outputs = { nixpkgs, self, nix, deploy-rs, ... }@inputs: diff --git a/profiles/applications/vscodium/default.nix b/profiles/applications/vscodium/default.nix index fd39d7a..136af70 100644 --- a/profiles/applications/vscodium/default.nix +++ b/profiles/applications/vscodium/default.nix @@ -53,7 +53,10 @@ in { package = pkgs.vscodium; mutableExtensionsDir = false; - extensions = with pkgs.vscode-extensions; + extensions = + with inputs.nix-vscode-marketplace.packages.${pkgs.system}.vscode; + with inputs.nix-vscode-marketplace.packages.${pkgs.system}.open-vsx; + with pkgs.vscode-extensions; [ kahole.magit (inputs.direnv-vscode.packages.${pkgs.system}.vsix.overrideAttrs (_: { @@ -83,6 +86,7 @@ in { llvm-vs-code-extensions.vscode-clangd stkb.rewrap shardulm94.trailing-spaces + meraymond.idris-vscode ] ++ pkgs.lib.concatMap builtins.attrValues (builtins.attrValues custom-extensions);