aboutsummaryrefslogtreecommitdiff
path: root/flakes/private/ports
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2023-10-04 02:09:38 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2023-10-04 02:11:48 +0200
commitb48bbe83febd6a457fef9b43f270e3bd0191f21b (patch)
treee9e2c4d00f90473820bc30880ad6b50362f06825 /flakes/private/ports
parent9ffdbe82759987114353ed01d28126af94ffeea1 (diff)
downloadNix-b48bbe83febd6a457fef9b43f270e3bd0191f21b.tar.gz
Nix-b48bbe83febd6a457fef9b43f270e3bd0191f21b.tar.zst
Nix-b48bbe83febd6a457fef9b43f270e3bd0191f21b.zip
Rename php forward-ports to ports
Diffstat (limited to 'flakes/private/ports')
-rw-r--r--flakes/private/ports/flake.lock62
-rw-r--r--flakes/private/ports/flake.nix39
2 files changed, 101 insertions, 0 deletions
diff --git a/flakes/private/ports/flake.lock b/flakes/private/ports/flake.lock
new file mode 100644
index 0000000..c9af933
--- /dev/null
+++ b/flakes/private/ports/flake.lock
@@ -0,0 +1,62 @@
1{
2 "nodes": {
3 "flake-utils": {
4 "locked": {
5 "lastModified": 1648297722,
6 "narHash": "sha256-W+qlPsiZd8F3XkzXOzAoR+mpFqzm3ekQkJNa+PIh1BQ=",
7 "owner": "numtide",
8 "repo": "flake-utils",
9 "rev": "0f8662f1319ad6abf89b3380dd2722369fc51ade",
10 "type": "github"
11 },
12 "original": {
13 "owner": "numtide",
14 "repo": "flake-utils",
15 "type": "github"
16 }
17 },
18 "nixpkgs": {
19 "flake": false,
20 "locked": {
21 "lastModified": 1596265691,
22 "narHash": "sha256-9ofCzFqttTsGrvTaS4RrDSTNQO9PFOz5uyn8V+2eA5M=",
23 "owner": "NixOS",
24 "repo": "nixpkgs",
25 "rev": "840c782d507d60aaa49aa9e3f6d0b0e780912742",
26 "type": "github"
27 },
28 "original": {
29 "owner": "NixOS",
30 "repo": "nixpkgs",
31 "rev": "840c782d507d60aaa49aa9e3f6d0b0e780912742",
32 "type": "github"
33 }
34 },
35 "nixpkgs-4": {
36 "flake": false,
37 "locked": {
38 "lastModified": 1646497237,
39 "narHash": "sha256-Ccpot1h/rV8MgcngDp5OrdmLTMaUTbStZTR5/sI7zW0=",
40 "owner": "NixOS",
41 "repo": "nixpkgs",
42 "rev": "062a0c5437b68f950b081bbfc8a699d57a4ee026",
43 "type": "github"
44 },
45 "original": {
46 "owner": "NixOS",
47 "repo": "nixpkgs",
48 "rev": "062a0c5437b68f950b081bbfc8a699d57a4ee026",
49 "type": "github"
50 }
51 },
52 "root": {
53 "inputs": {
54 "flake-utils": "flake-utils",
55 "nixpkgs": "nixpkgs",
56 "nixpkgs-4": "nixpkgs-4"
57 }
58 }
59 },
60 "root": "root",
61 "version": 7
62}
diff --git a/flakes/private/ports/flake.nix b/flakes/private/ports/flake.nix
new file mode 100644
index 0000000..42aae30
--- /dev/null
+++ b/flakes/private/ports/flake.nix
@@ -0,0 +1,39 @@
1{
2 description = "Php old versions";
3 inputs.flake-utils.url = "github:numtide/flake-utils";
4 inputs.nixpkgs = {
5 url = "github:NixOS/nixpkgs/840c782d507d60aaa49aa9e3f6d0b0e780912742";
6 flake = false;
7 };
8 inputs.nixpkgs-4 = {
9 url = "github:NixOS/nixpkgs/062a0c5437b68f950b081bbfc8a699d57a4ee026";
10 flake = false;
11 };
12 outputs = { self, nixpkgs, nixpkgs-4, flake-utils }: flake-utils.lib.eachSystem ["x86_64-linux"] (system:
13 let
14 pkgs = import nixpkgs { inherit system; overlays = []; };
15 in rec {
16 packages = {
17 php72 = pkgs.php72;
18 php73 = pkgs.php73;
19 php74 = (import nixpkgs-4 { inherit system; overlays = []; }).php74;
20 cryptpad = (import nixpkgs-4 { inherit system; overlays = []; }).cryptpad;
21 python37 = (import nixpkgs-4 { inherit system; overlays = []; }).python37;
22 python37Packages = (import nixpkgs-4 { inherit system; overlays = []; }).python37Packages;
23 telegram-purple = (import nixpkgs-4 { inherit system; overlays = []; }).telegram-purple;
24 };
25 legacyPackages = packages;
26 }) // rec {
27 overlays = {
28 ports = final: prev: {
29 php72 = self.packages."${final.system}".php72;
30 php73 = self.packages."${final.system}".php73;
31 php74 = self.packages."${final.system}".php74;
32 cryptpad = self.packages."${final.system}".cryptpad;
33 python37 = self.packages."${final.system}".python37;
34 telegram-purple = self.packages."${final.system}".telegram-purple;
35 };
36 };
37 overlay = overlays.ports;
38 };
39}