1 { stdenv, lib, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-2npevr3eSFhB58gRB2IuG4nwzPEGr0xcoSa/4VS0DNg=";
15 substituteInPlace src/starfetch.cpp --replace /usr/local/ $out/
16 '' + lib.optionalString stdenv.cc.isClang ''
17 substituteInPlace makefile --replace g++ clang++
24 mkdir -p $out/share/starfetch
25 cp starfetch $out/bin/
26 cp -r res/* $out/share/starfetch/
32 description = "CLI star constellations displayer";
33 homepage = "https://github.com/Haruno19/starfetch";
34 license = licenses.gpl3Plus;
35 platforms = platforms.all;
36 maintainers = with maintainers; [ annaaurora ];