Skip to content

Commit

Permalink
Simplify README
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Jun 20, 2023
1 parent 1442593 commit 54ba394
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Because of this, we use [Nix](https://nixos.org/) for local development.
After you [install Nix](https://github.com/DeterminateSystems/nix-installer), make sure you are in directory with SncRedisBundle.
Within it, you can run
```
NIXPKGS_ALLOW_INSECURE=1 NIXPKGS_ALLOW_UNFREE=1 nix shell --extra-experimental-features nix-command --extra-experimental-features flakes --impure
nix shell
```

to install and enter the development environment. Once there, you can run
Expand Down
56 changes: 28 additions & 28 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,42 @@
system: let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
config.allowInsecurePredicate = pkg: pkgs.lib.getName pkg == "openssl";
};
php = pkgs.php82.buildEnv {
extensions = (
{
all,
enabled,
}:
enabled
++ [
all.xdebug
(all.redis.overrideAttrs (finalAttrs: previousAttrs: {
src = pkgs.fetchFromGitHub {
repo = "phpredis";
owner = "phpredis";
rev = "fea19b5229343212424c9921a977fce300d4e130";
sha256 = "sha256-1TII8sLDsH9Ufjl0HHtHtBi29FNEG2qNrMkMhM6+iO0=";
};
}))
# relay section https://relay.so/docs/1.x/installation#manual-installation
all.igbinary
all.msgpack
all.relay
]
);
};
in {
formatter = pkgs.alejandra;
packages.default = pkgs.buildEnv {
name = "snc-redis";
paths = let
php = pkgs.php82;
in [
paths = [
php
php.packages.composer
pkgs.redis
pkgs.overmind
(
php.withExtensions
(
{
all,
enabled,
}:
enabled
++ [
all.xdebug
(all.redis.overrideAttrs (finalAttrs: previousAttrs: {
src = pkgs.fetchFromGitHub {
repo = "phpredis";
owner = "phpredis";
rev = "fea19b5229343212424c9921a977fce300d4e130";
sha256 = "sha256-1TII8sLDsH9Ufjl0HHtHtBi29FNEG2qNrMkMhM6+iO0=";
};
}))
# relay section https://relay.so/docs/1.x/installation#manual-installation
all.igbinary
all.msgpack
all.relay
]
)
)
];
};
}
Expand Down

0 comments on commit 54ba394

Please sign in to comment.