anytype: 0.43.8 -> 0.44.0
This commit is contained in:
parent
cf5b58a253
commit
23e8a8f663
@ -1,15 +1,23 @@
|
|||||||
{ lib, fetchurl, appimageTools, makeWrapper, commandLineArgs ? "" }:
|
{
|
||||||
|
lib,
|
||||||
|
fetchurl,
|
||||||
|
appimageTools,
|
||||||
|
makeWrapper,
|
||||||
|
nix-update-script,
|
||||||
|
commandLineArgs ? "",
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "anytype";
|
pname = "anytype";
|
||||||
version = "0.43.8";
|
version = "0.44.0";
|
||||||
name = "Anytype-${version}";
|
name = "Anytype-${version}";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/anyproto/anytype-ts/releases/download/v${version}/${name}.AppImage";
|
url = "https://github.com/anyproto/anytype-ts/releases/download/v${version}/${name}.AppImage";
|
||||||
hash = "sha256-inqJvx5K/k97X50E0FYlzJDKqrVjAU6ZKIVdCWHr8NI=";
|
hash = "sha256-+Ae0xH6ipNZgIVrrAmgeG8bibm/I3NLiDMzS+fwf9RQ=";
|
||||||
};
|
};
|
||||||
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
||||||
in appimageTools.wrapType2 {
|
in
|
||||||
|
appimageTools.wrapType2 {
|
||||||
inherit pname version src;
|
inherit pname version src;
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
@ -29,6 +37,17 @@ in appimageTools.wrapType2 {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script {
|
||||||
|
# Prevent updating to versions with '-' in them.
|
||||||
|
# Necessary since Anytype uses Electron-based 'MAJOR.MINOR.PATCH(-{alpha,beta})?' versioning scheme where each
|
||||||
|
# {alpha,beta} version increases the PATCH version, releasing a new full release version in GitHub instead of a
|
||||||
|
# pre-release version.
|
||||||
|
extraArgs = [
|
||||||
|
"--version-regex"
|
||||||
|
"[^-]*"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "P2P note-taking tool";
|
description = "P2P note-taking tool";
|
||||||
homepage = "https://anytype.io/";
|
homepage = "https://anytype.io/";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user