Use nix-shell over nix develop in .envrc (#3634)

This commit is contained in:
Seth Flynn 2025-04-27 06:46:13 -04:00 committed by GitHub
commit 440f7ea9a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

2
.envrc
View File

@ -1,2 +1,2 @@
use flake use nix
watch_file nix/*.nix watch_file nix/*.nix

View File

@ -138,6 +138,8 @@
{ {
default = pkgs.mkShell { default = pkgs.mkShell {
name = "prism-launcher";
inputsFrom = [ packages'.prismlauncher-unwrapped ]; inputsFrom = [ packages'.prismlauncher-unwrapped ];
packages = with pkgs; [ packages = with pkgs; [

4
shell.nix Normal file
View File

@ -0,0 +1,4 @@
(import (fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/ff81ac966bb2cae68946d5ed5fc4994f96d0ffec.tar.gz";
sha256 = "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=";
}) { src = ./.; }).shellNix