3
0
Fork 0
forked from mirrors/nixpkgs

starfetch: init at 0.0.2

This commit is contained in:
papojari 2022-04-06 16:30:45 +02:00
parent 26ab628331
commit e008bf75ab
No known key found for this signature in database
GPG key ID: 5D98BEEC20C9695C
2 changed files with 38 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -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;
};