File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 11{ pkgs ? import <nixpkgs> { } } :
22
3- pkgs . stdenv . mkDerivation rec {
3+ pkgs . rustPlatform . buildRustPackage rec {
44 pname = "kotofetch" ;
55 version = "0.2.18" ;
66
7- src = pkgs . fetchurl {
8- url = "https://github.com/hxpe-dev/kotofetch/releases/download/v${ version } /kotofetch-v${ version } -x86_64-unknown-linux-gnu.tar.gz" ;
9- sha256 = "sha256-U0Bwm++/WTU0Lkv1lC518JCHwBIBno/SqSQQiGfbOJk=" ; # fill in
7+ src = pkgs . fetchFromGitHub {
8+ owner = "hxpe-dev" ;
9+ repo = "kotofetch" ;
10+ rev = "v${ version } " ;
11+ sha256 = "sha256-sU+GeZKr8Tpg52XzxLmuA3NyqA47wqANL4yReFJpI4M=" ;
1012 } ;
1113
12- installPhase = ''
13- mkdir -p $out/bin
14- tar -xzf $src --strip-components=1 -C $out/bin
15- '' ;
14+ cargoLock = {
15+ lockFile = ./Cargo.lock ;
16+ } ;
1617
1718 meta = with pkgs . lib ; {
1819 description = "Minimalist fetch tool for Japanese quotes (written in Rust)" ;
1920 homepage = "https://github.com/hxpe-dev/kotofetch" ;
2021 license = licenses . mit ;
21- maintainers = [ ] ;
2222 platforms = platforms . unix ;
2323 } ;
2424}
You can’t perform that action at this time.
0 commit comments