3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/misc/zammad/update.nix
Ember 'n0emis' Keske 7cf49c38a5 zammad: init at 5.0.2
Co-authored-by: Rok Garbas <rok@garbas.si>
2022-02-23 10:41:24 -05:00

36 lines
742 B
Nix

{ stdenv
, lib
, makeWrapper
, bundix
, common-updater-scripts
, 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
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;
};
}