diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-11-29 21:00:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 21:00:12 +0100 |
commit | 0ff4fcf73942fa05a0dcdcd53080f8fe5ee7f28c (patch) | |
tree | 77591c06c2e7c89738639872a9ad712f4a8e3373 /pkgs/servers | |
parent | 078f5813f234bd4ee5f540fe025f89a932f7e454 (diff) | |
parent | e67685910d38948bf62e64142306778f20743d45 (diff) | |
download | nixpkgs-0ff4fcf73942fa05a0dcdcd53080f8fe5ee7f28c.tar nixpkgs-0ff4fcf73942fa05a0dcdcd53080f8fe5ee7f28c.tar.gz nixpkgs-0ff4fcf73942fa05a0dcdcd53080f8fe5ee7f28c.tar.bz2 nixpkgs-0ff4fcf73942fa05a0dcdcd53080f8fe5ee7f28c.tar.lz nixpkgs-0ff4fcf73942fa05a0dcdcd53080f8fe5ee7f28c.tar.xz nixpkgs-0ff4fcf73942fa05a0dcdcd53080f8fe5ee7f28c.tar.zst nixpkgs-0ff4fcf73942fa05a0dcdcd53080f8fe5ee7f28c.zip |
Merge pull request #144824 from erictapen/mastodon-3.4.2
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/mastodon/package.json | 6 | ||||
-rw-r--r-- | pkgs/servers/mastodon/source.nix | 4 | ||||
-rw-r--r-- | pkgs/servers/mastodon/update.nix | 36 | ||||
-rw-r--r-- | pkgs/servers/mastodon/version.nix | 2 | ||||
-rw-r--r-- | pkgs/servers/mastodon/version.patch | 4 |
5 files changed, 31 insertions, 21 deletions
diff --git a/pkgs/servers/mastodon/package.json b/pkgs/servers/mastodon/package.json index 7d540007909..b81940521c8 100644 --- a/pkgs/servers/mastodon/package.json +++ b/pkgs/servers/mastodon/package.json @@ -1,6 +1,6 @@ { - "version": "3.4.1", - "name": "@tootsuite/mastodon", + "version": "3.4.4", + "name": "@mastodon/mastodon", "license": "AGPL-3.0-or-later", "engines": { "node": ">=12" @@ -19,7 +19,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/tootsuite/mastodon.git" + "url": "https://github.com/mastodon/mastodon.git" }, "browserslist": [ "last 2 versions", diff --git a/pkgs/servers/mastodon/source.nix b/pkgs/servers/mastodon/source.nix index be64ff23150..4b1cd55b5e9 100644 --- a/pkgs/servers/mastodon/source.nix +++ b/pkgs/servers/mastodon/source.nix @@ -2,8 +2,8 @@ { fetchgit, applyPatches }: let src = fetchgit { url = "https://github.com/tootsuite/mastodon.git"; - rev = "v3.4.1"; - sha256 = "1pg3yh6gfzwrhzm35s6ydpny4fj117z2avi4rck5d7n20j8s2hf5"; + rev = "v3.4.4"; + sha256 = "0gi818ns7ws63g7izhcqq5b28kifzmvg0p278lq82h02ysg9grj3"; }; in applyPatches { inherit src; diff --git a/pkgs/servers/mastodon/update.nix b/pkgs/servers/mastodon/update.nix index d7423b3e66c..2e7df482530 100644 --- a/pkgs/servers/mastodon/update.nix +++ b/pkgs/servers/mastodon/update.nix @@ -1,20 +1,30 @@ -{ 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} - ''; - +{ 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" +{ 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; }; -} +} '' + mkdir -p $out/bin + cp ${./update.sh} $out/bin/update.sh + patchShebangs $out/bin/update.sh + wrapProgram $out/bin/update.sh --prefix PATH : ${binPath} +'' diff --git a/pkgs/servers/mastodon/version.nix b/pkgs/servers/mastodon/version.nix index 4ccfa7d8ebc..852b6be5f4b 100644 --- a/pkgs/servers/mastodon/version.nix +++ b/pkgs/servers/mastodon/version.nix @@ -1 +1 @@ -"3.4.1" +"3.4.4" diff --git a/pkgs/servers/mastodon/version.patch b/pkgs/servers/mastodon/version.patch index 08bc2f827a8..2d8d6007165 100644 --- a/pkgs/servers/mastodon/version.patch +++ b/pkgs/servers/mastodon/version.patch @@ -3,7 +3,7 @@ diff -Naur --label a/package.json --label b/package.json a/package.json b/packag +++ b/package.json @@ -1,4 +1,5 @@ { -+ "version": "3.4.1", - "name": "@tootsuite/mastodon", ++ "version": "3.4.4", + "name": "@mastodon/mastodon", "license": "AGPL-3.0-or-later", "engines": { |