-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flarum: package definition #32
Conversation
344a23d
to
b64e1e9
Compare
@@ -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"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the fork/branch for NixOS/nixpkgs#225401. Ideally once that PR is merged, we can just use the same nixpkgs
as everything else and remove this php-nixpkgs
param
e7a12e5
to
f102e89
Compare
4f847b1
to
ccce0c4
Compare
@@ -15,5 +20,6 @@ | |||
}; | |||
|
|||
callPackage = newScope (self // nixpkgs-candidates // {inherit callPackage;}); | |||
php-callPackage = php-newScope (self // nixpkgs-candidates // {inherit callPackage;}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because packaging flarum
required us to point to a different fork of nixpkgs
, we defined a separate callPackage
that uses that fork
ccce0c4
to
55561fa
Compare
Co-authored-by: Jason Odoom <jasonodoom@gmail.com> Co-authored-by: Anish Lakhwara <anish+git@lakhwara.com> Co-authored-by: Dominic Mills <dominic.millz27@gmail.com> Co-authored-by: Albert Chae <albertchae@users.noreply.github.com> Co-authored-by: Jack Leightcap <jack@leightcap.com> Signed-off-by: Jack Leightcap <jack@leightcap.com>
55561fa
to
02900b0
Compare
Towards #10
First attempt here: #23
This PR uses that builder, and so includes some additional temporary inputs in
flake.nix
. To usebuildComposerProject
without an upstreamcomposer.lock
, we've had to commit a valid lockfile locally to the package definition.composer create-project flarum/flarum .
yields a valid lockfileOnce the draft PHP builder PR is merged, they can be removed.
PR with patch: #33
nix flake update
to pull in upstreamcallPackage
herengipkgs/all-packages.nix
Line 7 in ccce0c4
php-*
)ngipkgs/all-packages.nix
Line 23 in ccce0c4
ngipkgs/all-packages.nix
Line 3 in ccce0c4
ngipkgs/all-packages.nix
Line 3 in ccce0c4
ngipkgs/flake.nix
Line 23 in ccce0c4
ngipkgs/flake.nix
Line 28 in ccce0c4