-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshell.nix
More file actions
34 lines (32 loc) · 1.35 KB
/
shell.nix
File metadata and controls
34 lines (32 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#let
# #
# # Note that I am using a specific version from NixOS here because of
# # https://github.com/NixOS/nixpkgs/issues/267916#issuecomment-1817481744
# #
# nixpkgs = builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-22.11.tar.gz";
# #nixpkgs = builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/51f732d86fac4693840818ad2aa4781d78be2e89.tar.gz";
# pkgs = import nixpkgs { config = { }; overlays = [ ]; };
# pythonPackages = pkgs.python311Packages;
with import <nixpkgs> {}; let
# For packages pinned to a specific version
#pinnedHash = "617579a787259b9a6419492eaac670a5f7663917";
#pinnedPkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/${pinnedHash}.tar.gz") {};
pinnedPkgs = import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
}) {};
in
pkgs.mkShell rec {
allowUnfree = true;
buildInputs = [
vscode
];
# Now we can execute any commands within the virtual environment.
# This is optional and can be left out to run pip manually.
shellHook = ''
echo "QGIS Changelog"
echo "_________________________________________________________"
echo "Command : Description"
echo "_________________________________________________________"
echo "🚀 ./vscode.sh : Open VSCode"
'';
}