mastodon: apply suggestion
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
# This file was generated by pkgs.mastodon.updateScript.
|
# This file was generated by pkgs.mastodon.updateScript.
|
||||||
{ fetchFromGitHub, applyPatches }:
|
{ fetchFromGitHub, applyPatches }:
|
||||||
applyPatches {
|
let
|
||||||
version = "4.1.9";
|
version = "4.1.9";
|
||||||
|
in
|
||||||
|
applyPatches {
|
||||||
|
inherit version;
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mastodon";
|
owner = "mastodon";
|
||||||
repo = "mastodon";
|
repo = "mastodon";
|
||||||
rev = "v4.1.9";
|
rev = "${version}";
|
||||||
hash = "sha256-xpE/mg2AeioW6NThUjLS+SBxGavG4w1xtp3BOMADfYo=";
|
hash = "sha256-xpE/mg2AeioW6NThUjLS+SBxGavG4w1xtp3BOMADfYo=";
|
||||||
};
|
};
|
||||||
patches = [];
|
patches = [];
|
||||||
|
|||||||
@@ -82,12 +82,15 @@ HASH=$(echo "$JSON" | jq -r .hash)
|
|||||||
cat > source.nix << EOF
|
cat > source.nix << EOF
|
||||||
# This file was generated by pkgs.mastodon.updateScript.
|
# This file was generated by pkgs.mastodon.updateScript.
|
||||||
{ fetchFromGitHub, applyPatches }:
|
{ fetchFromGitHub, applyPatches }:
|
||||||
applyPatches {
|
let
|
||||||
version = "$VERSION";
|
version = "$VERSION";
|
||||||
|
in
|
||||||
|
applyPatches {
|
||||||
|
inherit version;
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "$OWNER";
|
owner = "$OWNER";
|
||||||
repo = "$REPO";
|
repo = "$REPO";
|
||||||
rev = "$REVISION";
|
rev = "\${version}";
|
||||||
hash = "$HASH";
|
hash = "$HASH";
|
||||||
};
|
};
|
||||||
patches = [$PATCHES];
|
patches = [$PATCHES];
|
||||||
|
|||||||
Reference in New Issue
Block a user