mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
28 lines
626 B
Nix
28 lines
626 B
Nix
{
|
|
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
|
|
'';
|
|
}
|