Skip to content

Commit b7195f6

Browse files
authored
Fix NixOS install failure
Fixes #19
1 parent 710517c commit b7195f6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

default.nix

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
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
}

0 commit comments

Comments
 (0)