Skip to content

Commit

Permalink
Merge pull request #167541 from auroraanna/starfetch
Browse files Browse the repository at this point in the history
starfetch: init at 0.0.2
  • Loading branch information
SuperSandro2000 authored Jun 26, 2022
2 parents 251f166 + e008bf7 commit 0723967
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
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 = ''
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25061,6 +25061,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 Cocoa;
};
Expand Down

0 comments on commit 0723967

Please sign in to comment.