2021-11-23 20:52:25 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, bundix
|
|
|
|
, common-updater-scripts
|
2022-03-21 09:27:10 +00:00
|
|
|
, jq
|
2021-11-23 20:52:25 +00:00
|
|
|
, nix-prefetch-github
|
|
|
|
, yarn
|
|
|
|
, yarn2nix
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "zammad-update-script";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${./update.sh} $out/bin/update.sh
|
|
|
|
patchShebangs $out/bin/update.sh
|
|
|
|
wrapProgram $out/bin/update.sh --prefix PATH : ${lib.makeBinPath buildInputs}
|
|
|
|
'';
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [
|
|
|
|
bundix
|
|
|
|
common-updater-scripts
|
2022-03-21 09:27:10 +00:00
|
|
|
jq
|
2021-11-23 20:52:25 +00:00
|
|
|
nix-prefetch-github
|
|
|
|
yarn
|
|
|
|
yarn2nix
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = with lib.maintainers; [ n0emis ];
|
|
|
|
description = "Utility to generate Nix expressions for Zammad's dependencies";
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|