mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(grocy): barcode buddy
This commit is contained in:
parent
a157150956
commit
dc0c84c0a0
13 changed files with 391 additions and 1 deletions
28
packages/barcodebuddy.nix
Normal file
28
packages/barcodebuddy.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.strings) removePrefix;
|
||||
lock = builtins.fromJSON (builtins.readFile ../flake.lock);
|
||||
inherit (lock.nodes) barcodebuddy;
|
||||
in stdenvNoCC.mkDerivation {
|
||||
pname = "barcodebuddy";
|
||||
version = removePrefix "v" barcodebuddy.original.ref;
|
||||
src = fetchFromGitHub {
|
||||
inherit (barcodebuddy.locked) repo owner rev;
|
||||
sha256 = barcodebuddy.locked.narHash;
|
||||
};
|
||||
skipConfigure = true;
|
||||
skipBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -d $out
|
||||
cp -ar api/ incl/ locales/ menu/ plugins/ *.php $out/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue