2021-11-05 23:59:59 +00:00
|
|
|
{ pkgs
|
|
|
|
, runCommand
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, yarn2nix
|
|
|
|
, bundix
|
|
|
|
, coreutils
|
|
|
|
, diffutils
|
|
|
|
, nix-prefetch-github
|
|
|
|
, gnused
|
|
|
|
, jq
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
binPath = lib.makeBinPath [ yarn2nix bundix coreutils diffutils nix-prefetch-github gnused jq ];
|
|
|
|
in
|
|
|
|
runCommand "mastodon-update-script"
|
|
|
|
{
|
2019-05-02 15:50:28 +01: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-11-05 23:59:59 +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}
|
|
|
|
''
|