-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mob next [ci-skip] [ci skip] [skip ci]
lastFile:pkgs/flarum/default.nix.bak
- Loading branch information
1 parent
743fcc3
commit 29f6b9c
Showing
3 changed files
with
47 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
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,24 +1,14 @@ | ||
{ stdenv, fetchFromGitHub, php, phpPackages, ... }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "flarum"; | ||
version = "v1.8.1"; | ||
src = fetchFromGitHub { | ||
owner = "flarum"; | ||
repo = "framework"; | ||
rev = version; | ||
sha256 = "sha256-Q6+MxRTuMGzwkwnmgaLffkg6rpTlalA+49O/UGaz7HE="; | ||
{pkgs ? import <nixpkgs> { | ||
inherit system; | ||
}, system ? builtins.currentSystem, noDev ? false, php ? pkgs.php, phpPackages ? pkgs.phpPackages}: | ||
|
||
let | ||
composerEnv = import ./composer-env.nix { | ||
inherit (pkgs) stdenv lib writeTextFile fetchurl unzip; | ||
inherit php phpPackages; | ||
}; | ||
|
||
buildInputs = [ php phpPackages.composer ]; | ||
|
||
buildPhase = '' | ||
composer install | ||
''; | ||
|
||
installPhase = '' | ||
mkdir -p $out/www | ||
cp -r * $out/www | ||
''; | ||
in | ||
import ./php-packages.nix { | ||
inherit composerEnv noDev; | ||
inherit (pkgs) fetchurl fetchgit fetchhg fetchsvn; | ||
} | ||
|
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ stdenv, fetchFromGitHub, php, phpPackages, ... }: | ||
|
||
let | ||
composerEnv = import ./composer-env.nix { | ||
inherit (pkgs) stdenv lib writeTextFile fetchurl unzip; | ||
inherit php phpPackages; | ||
}; | ||
in | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "flarum"; | ||
version = "v1.8.1"; | ||
src = fetchFromGitHub { | ||
owner = "flarum"; | ||
repo = "framework"; | ||
rev = version; | ||
sha256 = "sha256-Q6+MxRTuMGzwkwnmgaLffkg6rpTlalA+49O/UGaz7HE="; | ||
}; | ||
|
||
buildInputs = [ php phpPackages.composer ]; | ||
|
||
buildPhase = '' | ||
composer install | ||
''; | ||
|
||
installPhase = '' | ||
mkdir -p $out/www | ||
cp -r * $out/www | ||
''; | ||
} | ||
|
||
import ./php-packages.nix { | ||
inherit composerEnv noDev; | ||
inherit (pkgs) fetchurl fetchgit fetchhg fetchsvn; | ||
} |