infrastructure/nixos/pkgs/glitch-soc/update.nix

28 lines
678 B
Nix
Raw Normal View History

2023-05-04 13:08:10 +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
];
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}
''