File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
pkgs/by-name/ra/radicle-tui Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 11{
22 lib ,
33 rustPlatform ,
4- fetchgit ,
4+ fetchFromRadicle ,
55 stdenv ,
66 libiconv ,
77 zlib ,
@@ -13,9 +13,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
1313 pname = "radicle-tui" ;
1414 version = "0.6.0" ;
1515
16- src = fetchgit {
17- url = "https://seed.radicle.xyz/z39mP9rQAaGmERfUMPULfPUi473tY.git" ;
18- rev = "refs/namespaces/z6MkswQE8gwZw924amKatxnNCXA55BMupMmRg7LvJuim2C1V/refs/tags/${ finalAttrs . version } " ;
16+ src = fetchFromRadicle {
17+ seed = "seed.radicle.xyz" ;
18+ repo = "z39mP9rQAaGmERfUMPULfPUi473tY" ;
19+ node = "z6MkswQE8gwZw924amKatxnNCXA55BMupMmRg7LvJuim2C1V" ;
20+ tag = finalAttrs . version ;
1921 hash = "sha256-rz9l9GtycqZoROUI6Hn0Fv5Br0YCIrcHlEWLMP4hasQ=" ;
2022 leaveDotGit = true ;
2123 postFetch = ''
Original file line number Diff line number Diff line change @@ -6,13 +6,10 @@ set -euo pipefail
66dirname=" $( dirname " ${BASH_SOURCE[0]} " ) "
77
88url=$( nix-instantiate --eval --raw -A radicle-tui.src.url)
9- old_ref=$( nix-instantiate --eval --raw -A radicle-tui.src.rev)
10- new_ref=$( git ls-remote " $url " ' refs/namespaces/*/refs/tags/*' | cut -f2 | tail -1)
9+ old_node=$( nix-instantiate --eval --raw -A radicle-tui.src.node)
1110
12- [[ " $old_ref " =~ ^refs/namespaces/([^/]+)/refs/tags/([^/]+)$ ]]
13- old_node=" ${BASH_REMATCH[1]} "
14-
15- [[ " $new_ref " =~ ^refs/namespaces/([^/]+)/refs/tags/([^/]+)$ ]]
11+ ref=$( git ls-remote " $url " ' refs/namespaces/*/refs/tags/*' | cut -f2 | tail -1)
12+ [[ " $ref " =~ ^refs/namespaces/([^/]+)/refs/tags/([^/]+)$ ]]
1613new_node=" ${BASH_REMATCH[1]} "
1714version=" ${BASH_REMATCH[2]} "
1815
You can’t perform that action at this time.
0 commit comments