forked from mirrors/nixpkgs
Merge pull request #167541 from auroraanna/starfetch
starfetch: init at 0.0.2
This commit is contained in:
commit
0723967191
36
pkgs/tools/misc/starfetch/default.nix
Executable file
36
pkgs/tools/misc/starfetch/default.nix
Executable 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 ];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue