a3bb8d7922
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
20 lines
704 B
Nix
20 lines
704 B
Nix
{ pkgs, stdenv, lib, makeWrapper, yarn2nix, bundix, coreutils,
|
|
diffutils, nix-prefetch-github, gnused, jq }:
|
|
stdenv.mkDerivation rec {
|
|
name = "mastodon-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}
|
|
'';
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ yarn2nix bundix coreutils diffutils nix-prefetch-github gnused jq ];
|
|
|
|
meta = {
|
|
maintainers = with lib.maintainers; [ happy-river ];
|
|
description = "Utility to generate Nix expressions for Mastodon's dependencies";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|