2021-12-06 16:07:01 +00:00
|
|
|
{ pkgs
|
|
|
|
, runCommand
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, yarn2nix
|
|
|
|
, bundix
|
|
|
|
, coreutils
|
|
|
|
, diffutils
|
2022-04-15 01:41:22 +00:00
|
|
|
, nix-prefetch-git
|
2021-12-06 16:07:01 +00:00
|
|
|
, gnused
|
|
|
|
, jq
|
|
|
|
}:
|
|
|
|
let
|
2022-04-15 01:41:22 +00:00
|
|
|
binPath = lib.makeBinPath [ yarn2nix bundix coreutils diffutils nix-prefetch-git gnused jq ];
|
2021-12-06 16:07:01 +00:00
|
|
|
in
|
|
|
|
runCommand "mastodon-update-script"
|
|
|
|
{
|
2021-02-13 14:23:35 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = with lib.maintainers; [ happy-river ];
|
|
|
|
description = "Utility to generate Nix expressions for Mastodon's dependencies";
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
} ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${./update.sh} $out/bin/update.sh
|
|
|
|
patchShebangs $out/bin/update.sh
|
|
|
|
wrapProgram $out/bin/update.sh --prefix PATH : ${binPath}
|
|
|
|
''
|