Fix shell setup

This commit is contained in:
Martin 2022-05-20 15:31:42 +02:00
parent b882aea046
commit 7490393c5f
Signed by: mawalu
GPG Key ID: BF556F989760A7C8
2 changed files with 17 additions and 16 deletions

View File

@ -4,25 +4,24 @@
"locked": {
"lastModified": 1649676176,
"narHash": "sha256-OWKJratjt2RW151VUlJPRALb7OU2S5s+f0vLj4o1bHM=",
"owner": "numtide",
"repo": "flake-utils",
"ref": "master",
"rev": "a4b154ebbdc88c8498a5c7b01589addc9e9cb678",
"type": "github"
"revCount": 49,
"type": "git",
"url": "https://g.m5w.de/mawalu/flake-utils"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"rev": "a4b154ebbdc88c8498a5c7b01589addc9e9cb678",
"type": "github"
"type": "git",
"url": "https://g.m5w.de/mawalu/flake-utils"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1651495557,
"narHash": "sha256-LtdjPfRx0JdMnNcViZ/NpqCX/v3HE7SP0P/Ipf2AVtk=",
"lastModified": 1652261291,
"narHash": "sha256-ix8or/Evw+c9oinsqKsE3t/GXkz01Br0xv1ICS5Hrsw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2379d9d0595d269577187053b1cdfd1e0f731894",
"rev": "676e4d42d68a26b758e47981bd4b2df8da1cec94",
"type": "github"
},
"original": {

View File

@ -2,7 +2,8 @@
description = "Webdev flake";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
inputs.flake-utils.url = "github:numtide/flake-utils?rev=a4b154ebbdc88c8498a5c7b01589addc9e9cb678";
inputs.flake-utils.url = "git+https://g.m5w.de/mawalu/flake-utils";
inputs.flake-utils.inputs.nixpkgs.follows = "nixpkgs";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
@ -16,12 +17,12 @@
extensions = { enabled, all }: enabled ++ [ all.imagick all.redis ];
extraConfig = "memory_limit = 2G";
}; in [ php php.packages.composer ];
devShell = config: pkgs.mkShell {
devShell = config: pkgs.mkShell ({
shellHook = ''
cd $DEVSHELL_OLDPWD
exec bwbox --profile dev zsh
'';
} // config;
} // config);
in {
devShells = {
php74 = devShell {
@ -40,12 +41,13 @@
buildInputs =
let
python = pkgs.python310.withPackages (p: with p; [
requests
pip
pwntools
requests
setuptools
]);
in
with pkgs; inputs ++ [ python curl ];
with pkgs; inputs ++ [ python curl pwndbg metasploit john gobuster nmap ];
};
};
}