1{ stdenv
2, lib
3, fetchFromGitHub
4}:
5
6stdenv.mkDerivation rec {
7 pname = "afetch";
8 version = "2.2.0";
9
10 src = fetchFromGitHub {
11 owner = "13-CF";
12 repo = "afetch";
13 rev = "V${version}";
14 sha256 = "sha256-bHP3DJpgh89AaCX4c1tQGaZ/PiWjArED1rMdszFUq+U=";
15 };
16
17 makeFlags = [
18 "PREFIX=${placeholder "out"}"
19 ];
20
21 meta = with lib; {
22 description = "A fetch program written in C";
23 homepage = "https://github.com/13-CF/afetch";
24 license = licenses.gpl3Plus;
25 maintainers = with maintainers; [ dan4ik605743 jk ];
26 platforms = platforms.linux;
27 mainProgram = "afetch";
28 };
29}