"99 2026-01-27 15:51:58 26.05.20260123.c5296fd 6.18.7"
This commit is contained in:
83
vscodium-project/flake.lock
generated
Normal file
83
vscodium-project/flake.lock
generated
Normal file
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-vscode-extensions": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1764727178,
|
||||
"narHash": "sha256-6MSTBqaqY2nVMmklAS3giy4hRKzYdbOr0/KEawIvK2w=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-vscode-extensions",
|
||||
"rev": "a4198d233544cfe0ca8001cc7f1f055d2961f756",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-vscode-extensions",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1759770925,
|
||||
"narHash": "sha256-CZwkCtzTNclqlhuwDsVtGoRumTpqCUK0xSnFIMgd8ls=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "674c2b09c59a220204350ced584cadaacee30038",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "674c2b09c59a220204350ced584cadaacee30038",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nix-vscode-extensions": "nix-vscode-extensions",
|
||||
"nixpkgs": [
|
||||
"nix-vscode-extensions",
|
||||
"nixpkgs"
|
||||
]
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
53
vscodium-project/flake.nix
Normal file
53
vscodium-project/flake.nix
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
inputs = {
|
||||
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
nixpkgs.follows = "nix-vscode-extensions/nixpkgs";
|
||||
};
|
||||
|
||||
outputs = inputs:
|
||||
inputs.flake-utils.lib.eachDefaultSystem (
|
||||
system: let
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
overlays = [inputs.nix-vscode-extensions.overlays.default];
|
||||
};
|
||||
|
||||
inherit (pkgs) vscode-with-extensions vscodium;
|
||||
|
||||
packages.default = vscode-with-extensions.override {
|
||||
vscode = vscodium;
|
||||
vscodeExtensions = [
|
||||
pkgs.vscode-marketplace.golang.go
|
||||
pkgs.open-vsx-release.rust-lang.rust-analyzer
|
||||
# unfree
|
||||
pkgs.vscode-marketplace.ms-python.vscode-pylance
|
||||
];
|
||||
};
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
shellHook = ''
|
||||
printf "Run VSCodium using one of the following commands:\n\n"
|
||||
printf "nix run .# .\n\n"
|
||||
printf "nix develop .#vscodium -c codium .\n\n"
|
||||
'';
|
||||
};
|
||||
|
||||
# In some projects, people may use the same default devShell,
|
||||
# but different code editors.
|
||||
#
|
||||
# Then, it's better to provide `VSCodium`
|
||||
# not in the default devShell.
|
||||
devShells.vscodium = pkgs.mkShell {
|
||||
buildInputs = [packages.default];
|
||||
shellHook = ''
|
||||
printf "VSCodium with extensions:\n"
|
||||
codium --list-extensions
|
||||
'';
|
||||
};
|
||||
in {
|
||||
inherit packages devShells;
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user