Skip to content

Commit

Permalink
devshell: split default shell
Browse files Browse the repository at this point in the history
  • Loading branch information
ElXreno committed Dec 17, 2022
1 parent 8530f4f commit 5aa9568
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 29 deletions.
8 changes: 8 additions & 0 deletions devshell/android.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ pkgs, ... }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
androidStudioPackages.canary
];

buildInputs = with pkgs; [ ];
}
31 changes: 2 additions & 29 deletions devshell/default.nix
Original file line number Diff line number Diff line change
@@ -1,50 +1,23 @@
{ pkgs, ... }:
let python = pkgs.python39;
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
pkg-config
clang
gnumake
rustup
python3

# bruh
php
] ++ (with jetbrains; with androidStudioPackages; [
] ++ (with jetbrains; [
clion
idea-ultimate
phpstorm
rider

canary
]);

buildInputs = with pkgs; with python.pkgs; [
buildInputs = with pkgs; [
# Rust
openssl
sqlite
gtk4

# C#
dotnet-sdk_6
mono6

# Python
setuptools
wheel
venvShellHook
];

venvDir = "/home/elxreno/.cache/nix-python-venv";

postVenv = ''
unset SOURCE_DATE_EPOCH
./scripts/install_local_packages.sh
'';
postShellHook = ''
# Allow the use of wheels.
unset SOURCE_DATE_EPOCH
PYTHONPATH=$venvDir/${python.sitePackages}:$PYTHONPATH
'';
}
11 changes: 11 additions & 0 deletions devshell/dotnet.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ pkgs, ... }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
jetbrains.rider
];

buildInputs = with pkgs; [
dotnet-sdk_6
mono6
];
}
35 changes: 35 additions & 0 deletions devshell/python.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ pkgs, ... }:
let python = pkgs.python39;
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
pkg-config
clang
gnumake
rustup
python3
] ++ (with jetbrains; [
pycharm-professional
]);

buildInputs = with pkgs; with python.pkgs; [
# Python
aiohttp
setuptools
toml
wheel
venvShellHook
];

venvDir = "/home/elxreno/.cache/nix-python-venv";

postVenv = ''
unset SOURCE_DATE_EPOCH
./scripts/install_local_packages.sh
'';
postShellHook = ''
# Allow the use of wheels.
unset SOURCE_DATE_EPOCH
PYTHONPATH=$venvDir/${python.sitePackages}:$PYTHONPATH
'';
}

0 comments on commit 5aa9568

Please sign in to comment.