-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.nix
More file actions
42 lines (35 loc) · 883 Bytes
/
default.nix
File metadata and controls
42 lines (35 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{pkgs ? import <nixpkgs> {}}: let
php = pkgs.php84.withExtensions (
{
all,
enabled,
}:
enabled
++ (with all; [
curl
mbstring
pdo
pdo_pgsql
openssl
iconv
])
);
in
pkgs.php.buildComposerProject2 (finalAttrs: {
pname = "phpuzb-telegram";
version = "1.0.0";
src = pkgs.lib.cleanSource ./.;
composerLock = ./composer.lock;
php = php;
composerStrictValidation = false;
vendorHash = "sha256-/B99+wEEQS8XaLI6fOB75e4C2yv5bY/Zb4G0Q8R25XY=";
nativeBuildInputs = [pkgs.makeWrapper];
postInstall = ''
mkdir -p $out/bin
makeWrapper ${php}/bin/php $out/bin/phpuzb-telegram \
--add-flags "$out/share/php/${finalAttrs.pname}/src/index.php"
'';
meta = with pkgs.lib; {
description = "PHP Uzbekistan Telegram Assistant";
};
})