2023-09-25 11:56:02 +02:00
|
|
|
{ runCommand
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, yarn2nix
|
|
|
|
, bundix
|
|
|
|
, coreutils
|
|
|
|
, diffutils
|
|
|
|
, nix-prefetch-git
|
|
|
|
, gnused
|
|
|
|
, jq
|
|
|
|
}:
|
2022-09-10 15:10:01 +02:00
|
|
|
let
|
2023-05-04 13:08:10 +02:00
|
|
|
binPath = lib.makeBinPath [
|
|
|
|
yarn2nix
|
|
|
|
bundix
|
|
|
|
coreutils
|
|
|
|
diffutils
|
|
|
|
nix-prefetch-git
|
|
|
|
gnused
|
|
|
|
jq
|
|
|
|
];
|
2023-09-25 11:56:02 +02:00
|
|
|
in
|
|
|
|
runCommand "mastodon-update-script"
|
|
|
|
{
|
2022-09-10 15:10:01 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = with lib.maintainers; [ happy-river ];
|
2023-05-04 13:08:10 +02:00
|
|
|
description =
|
|
|
|
"Utility to generate Nix expressions for Mastodon's dependencies";
|
2022-09-10 15:10:01 +02:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
} ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${./update.sh} $out/bin/update.sh
|
|
|
|
patchShebangs $out/bin/update.sh
|
|
|
|
wrapProgram $out/bin/update.sh --prefix PATH : ${binPath}
|
|
|
|
''
|