nile: use gitUpdater

Upstream tags releases, so we should not be using gitUnstableUpdater
when tracking release tags.
This commit is contained in:
Aidan Gauland 2024-09-17 10:34:18 +12:00
parent 850c8f2703
commit a32efffecd
No known key found for this signature in database
GPG Key ID: 16E68DD2D0E77C91

View File

@ -1,5 +1,5 @@
{ lib { lib
, unstableGitUpdater , gitUpdater
, buildPythonApplication , buildPythonApplication
, fetchFromGitHub , fetchFromGitHub
, pythonOlder , pythonOlder
@ -10,18 +10,20 @@
, zstandard , zstandard
, json5 , json5
, platformdirs , platformdirs
, cacert
}: }:
buildPythonApplication rec { let
version = "1.1.1";
in
buildPythonApplication {
pname = "nile"; pname = "nile";
version = "1.1.1-unstable-2024-09-05"; inherit version;
format = "pyproject"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "imLinguin"; owner = "imLinguin";
repo = "nile"; repo = "nile";
rev = "aefa5dd9c3a5146669da22317c8e0e3c12665f64"; rev = "v${version}";
hash = "sha256-wZdiUJH4sGYJqJ7Ssjl+30MiUbXupLzbSpiOU1M/3Fg="; hash = "sha256-wZdiUJH4sGYJqJ7Ssjl+30MiUbXupLzbSpiOU1M/3Fg=";
}; };
@ -56,7 +58,7 @@ buildPythonApplication rec {
maintainers = with maintainers; [ aidalgol ]; maintainers = with maintainers; [ aidalgol ];
}; };
passthru.updateScript = unstableGitUpdater { passthru.updateScript = gitUpdater {
tagPrefix = "v"; rev-prefix = "v";
}; };
} }