mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
41 lines
782 B
Nix
41 lines
782 B
Nix
{
|
|
stdenvNoCC,
|
|
lib,
|
|
makeWrapper,
|
|
bundix,
|
|
common-updater-scripts,
|
|
xidel,
|
|
jq,
|
|
nix-prefetch-github,
|
|
yarn,
|
|
yarn2nix,
|
|
}:
|
|
|
|
stdenvNoCC.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}
|
|
'';
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [
|
|
bundix
|
|
common-updater-scripts
|
|
xidel
|
|
jq
|
|
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;
|
|
};
|
|
}
|