mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
mastodon: apply suggestion
This commit is contained in:
parent
591d32cdb1
commit
300a6fda77
@ -1,11 +1,14 @@
|
||||
# This file was generated by pkgs.mastodon.updateScript.
|
||||
{ fetchFromGitHub, applyPatches }:
|
||||
applyPatches {
|
||||
let
|
||||
version = "4.1.9";
|
||||
in
|
||||
applyPatches {
|
||||
inherit version;
|
||||
src = fetchFromGitHub {
|
||||
owner = "mastodon";
|
||||
repo = "mastodon";
|
||||
rev = "v4.1.9";
|
||||
rev = "${version}";
|
||||
hash = "sha256-xpE/mg2AeioW6NThUjLS+SBxGavG4w1xtp3BOMADfYo=";
|
||||
};
|
||||
patches = [];
|
||||
|
@ -82,12 +82,15 @@ HASH=$(echo "$JSON" | jq -r .hash)
|
||||
cat > source.nix << EOF
|
||||
# This file was generated by pkgs.mastodon.updateScript.
|
||||
{ fetchFromGitHub, applyPatches }:
|
||||
applyPatches {
|
||||
let
|
||||
version = "$VERSION";
|
||||
in
|
||||
applyPatches {
|
||||
inherit version;
|
||||
src = fetchFromGitHub {
|
||||
owner = "$OWNER";
|
||||
repo = "$REPO";
|
||||
rev = "$REVISION";
|
||||
rev = "\${version}";
|
||||
hash = "$HASH";
|
||||
};
|
||||
patches = [$PATCHES];
|
||||
|
Loading…
Reference in New Issue
Block a user