From 6ab259abe6ef75509aae434a8132aab0140b4ae8 Mon Sep 17 00:00:00 2001 From: toastal Date: Sat, 27 Jan 2024 16:58:53 +0700 Subject: [PATCH] =?UTF-8?q?dvtm-unstable:=202018-03-31=20=E2=86=92=20unsta?= =?UTF-8?q?ble-2021-03-09?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • update to latest revision • prepended "unstable-" to the version as suggested in the Nixpkgs docs • remove merged patch @ Microsoft GitHub #86 • fetch from either Git forge mirror which reflects the documentation > You can always fetch the current code base from the Git repository > located at Github *or* SourceHut. --- pkgs/tools/misc/dvtm/unstable.nix | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/pkgs/tools/misc/dvtm/unstable.nix b/pkgs/tools/misc/dvtm/unstable.nix index 65e62be07497..4008407f28fa 100644 --- a/pkgs/tools/misc/dvtm/unstable.nix +++ b/pkgs/tools/misc/dvtm/unstable.nix @@ -1,13 +1,18 @@ -{callPackage, fetchFromGitHub, fetchpatch}: +{ callPackage, fetchpatch, fetchzip }: + +let + rev = "7bcf43f8dbd5c4a67ec573a1248114caa75fa3c2"; +in callPackage ./dvtm.nix { pname = "dvtm-unstable"; - version = "2018-03-31"; + version = "unstable-2021-03-09"; - src = fetchFromGitHub { - owner = "martanne"; - repo = "dvtm"; - rev = "311a8c0c28296f8f87fb63349e0f3254c7481e14"; - sha256 = "0pyxjkaxh8n97kccnmd3p98vi9h8mcfy5lswzqiplsxmxxmlbpx2"; + src = fetchzip { + urls = [ + "https://github.com/martanne/dvtm/archive/${rev}.tar.gz" + "https://git.sr.ht/~martanne/dvtm/archive/${rev}.tar.gz" + ]; + hash = "sha256-UtkNsW0mvLfbPSAIIZ1yvX9xzIDtiBeXCjhN2R8JhDc="; }; patches = [ @@ -18,13 +23,5 @@ callPackage ./dvtm.nix { url = "https://github.com/martanne/dvtm/commit/1f1ed664d64603f3f1ce1388571227dc723901b2.patch"; sha256 = "14j3kks7b1v6qq12442v1da3h7khp02rp0vi0qrz0rfgkg1zilpb"; }) - - # https://github.com/martanne/dvtm/pull/86 - # Fix buffer corruption when title is updated - (fetchpatch { - name = "fix-buffer-corruption-on-title-update"; - url = "https://github.com/martanne/dvtm/commit/be6c3f8f615daeab214d484e6fff22e19631a0d1.patch"; - sha256 = "1wdrl3sg815lhs22fwbc4w5dn4ifpdgl7v1kqfnhg752av4im7h7"; - }) ]; }