Skip to content

Commit

Permalink
Package flarum
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Odoom <[email protected]>
Co-authored-by: Anish Lakhwara <[email protected]>
Co-authored-by: Dominic Mills <[email protected]>
Co-authored-by: Albert Chae <[email protected]>
Co-authored-by: Jack Leightcap <[email protected]>
Signed-off-by: Jack Leightcap <[email protected]>
  • Loading branch information
5 people committed Aug 3, 2023
1 parent 3aca76e commit 02900b0
Show file tree
Hide file tree
Showing 5 changed files with 9,459 additions and 5 deletions.
12 changes: 9 additions & 3 deletions all-packages.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{newScope, ...}: let
{
newScope,
php-newScope,
...
}: let
self = rec {
libgnunetchat = callPackage ./pkgs/libgnunetchat {};
flarum = php-callPackage ./pkgs/flarum {};
gnunet-messenger-cli = callPackage ./pkgs/gnunet-messenger-cli {};
kikit = callPackage ./pkgs/kikit {};
liberaforms = callPackage ./pkgs/liberaforms {};
liberaforms-env = callPackage ./pkgs/liberaforms/env.nix {};
kikit = callPackage ./pkgs/kikit {};
libgnunetchat = callPackage ./pkgs/libgnunetchat {};
};

nixpkgs-candidates = {
Expand All @@ -15,5 +20,6 @@
};

callPackage = newScope (self // nixpkgs-candidates // {inherit callPackage;});
php-callPackage = php-newScope (self // nixpkgs-candidates // {inherit callPackage;});
in
self
19 changes: 18 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
description = "NgiPkgs";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.php-nixpkgs.url = "github:drupol/nixpkgs?ref=php/add-new-builder";
inputs.flake-utils.url = "github:numtide/flake-utils";
# Set the defaultSystem list for flake-utils to only x86_64-linux
inputs.systems.url = "github:nix-systems/x86_64-linux";
Expand All @@ -12,15 +13,20 @@
outputs = {
self,
nixpkgs,
php-nixpkgs,
flake-utils,
treefmt-nix,
...
}: let
buildOutputs = system: let
pkgs = nixpkgs.legacyPackages.${system};
php-pkgs = php-nixpkgs.legacyPackages.${system};
treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
in {
packages = import ./all-packages.nix {inherit (pkgs) newScope;};
packages = import ./all-packages.nix {
inherit (pkgs) newScope;
php-newScope = php-pkgs.newScope;
};
nixosModules = {
modules = import ./modules/all-modules.nix;
ngipkgs = {...}: {
Expand Down
Loading

0 comments on commit 02900b0

Please sign in to comment.