-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove leftovers in flake.nix after f20f5d8
- Loading branch information
1 parent
7a7a653
commit 1442593
Showing
2 changed files
with
79 additions
and
70 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,57 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { | ||
self, | ||
nixpkgs, | ||
}: let | ||
in { | ||
formatter.aarch64-darwin = nixpkgs.legacyPackages.aarch64-darwin.alejandra; | ||
buildEnv = { | ||
pkgs, | ||
relay, | ||
}: | ||
pkgs.buildEnv { | ||
name = "snc-redis"; | ||
paths = let | ||
php = pkgs.php82; | ||
in [ | ||
php.packages.composer | ||
pkgs.redis | ||
pkgs.overmind | ||
( | ||
php.withExtensions | ||
flake-utils, | ||
} @ inputs: | ||
flake-utils.lib.eachDefaultSystem | ||
( | ||
system: let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
}; | ||
in { | ||
formatter = pkgs.alejandra; | ||
packages.default = pkgs.buildEnv { | ||
name = "snc-redis"; | ||
paths = let | ||
php = pkgs.php82; | ||
in [ | ||
php.packages.composer | ||
pkgs.redis | ||
pkgs.overmind | ||
( | ||
{ | ||
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 | ||
] | ||
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 | ||
] | ||
) | ||
) | ||
) | ||
]; | ||
}; | ||
packages = { | ||
aarch64-darwin.default = self.buildEnv rec { | ||
pkgs = nixpkgs.legacyPackages.aarch64-darwin; | ||
relay = { | ||
platform = "darwin-arm64"; | ||
sha256 = "0xhg1z4gnifiy6ra76qrc1m0wi8gg6f9kgn9dnw6x5343p3v8k71"; | ||
}; | ||
}; | ||
aarch64-linux.default = self.buildEnv { | ||
pkgs = nixpkgs.legacyPackages.aarch64-linux; | ||
relay = { | ||
platform = "debian-aarch64+libssl3"; | ||
sha256 = "1yn2cldz0fy5p3dyfykyrnra969hb858wib205ykhac1plsq1p0j"; | ||
}; | ||
}; | ||
x86_64-darwin.default = self.buildEnv { | ||
pkgs = nixpkgs.legacyPackages.x86_64-darwin; | ||
relay = { | ||
platform = "darwin-x86-64"; | ||
sha256 = "0jp3r1kbcnhiyah7nmvh0hmwdrcbj5i5bdz2l22z3vk3sg33izr7"; | ||
]; | ||
}; | ||
}; | ||
x86_64-linux.default = self.buildEnv { | ||
pkgs = nixpkgs.legacyPackages.x86_64-linux; | ||
relay = { | ||
platform = "debian-x86-64+libssl3"; | ||
sha256 = "0l58qswv4acdwrg9cvb0zpm8im01yz1pqx02b39ya64qd1vwrjl2"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} | ||
); | ||
} |