Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

starfetch: init at 0.0.2 #167541

Merged
merged 1 commit into from
Jun 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions pkgs/tools/misc/starfetch/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ stdenv, lib, fetchFromGitHub }:

stdenv.mkDerivation rec {
pname = "starfetch";
version = "0.0.2";

src = fetchFromGitHub {
owner = "Haruno19";
repo = "starfetch";
rev = version;
sha256 = "sha256-waJ1DbOqhZ3hHtqcODSXBC+O46S8RSxuBuoEqs8OfgI=";
};

postPatch = ''
substituteInPlace src/starfetch.cpp --replace /usr/local/ $out/
'';

installPhase = ''
auroraanna marked this conversation as resolved.
Show resolved Hide resolved
runHook preInstall

mkdir -p $out/bin
mkdir -p $out/share/starfetch
cp starfetch $out/bin/
cp -r res/* $out/share/starfetch/

runHook postInstall
'';

meta = with lib; {
description = "CLI star constellations displayer";
homepage = "https://github.com/Haruno19/starfetch";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = with maintainers; [ papojari ];
};
auroraanna marked this conversation as resolved.
Show resolved Hide resolved
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24335,6 +24335,8 @@ with pkgs;

stdmanpages = callPackage ../data/documentation/std-man-pages { };

starfetch = callPackage ../tools/misc/starfetch { };

starship = callPackage ../tools/misc/starship {
inherit (darwin.apple_sdk.frameworks) Security Foundation;
};
Expand Down