-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbarcodebuddy.nix
61 lines (54 loc) · 1.12 KB
/
barcodebuddy.nix
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
php,
stdenvNoCC,
lib,
fetchFromGitHub,
nix-update-script,
valkey,
evtest,
}: let
phpWithExts = php.buildEnv {
extensions = {
enabled,
all,
}:
enabled
++ (with all; [
curl
mbstring
sqlite3
redis
sockets
]);
};
in
stdenvNoCC.mkDerivation (self: {
pname = "barcodebuddy";
version = "1.8.1.8-unstable-2024-06-02";
src = fetchFromGitHub {
owner = "Forceu";
repo = "barcodebuddy";
rev = "369798d05395ed055ea4b9b03d96471b784ed106";
hash = "sha256-zHprV5mCFciq5XgJD7fmEgb/vHlwAWOY1TcdBoCA8Eo=";
};
nativeBuildInputs = [
phpWithExts
valkey
evtest
];
installPhase = ''
runHook preInstall
mkdir -p "$out"
cp -vR "${self.src}/"* "$out/"
runHook postInstall
'';
passthru = {
inherit phpWithExts;
updateScript = nix-update-script {};
};
meta = with lib; {
description = "Create barcodes with information for Grocy";
homepage = "https://github.com/Forceu/barcodebuddy";
licenes = licenses.agpl3Only;
};
})