starfetch: init at 0.0.2
This commit is contained in:
parent
26ab628331
commit
e008bf75ab
2 changed files with 38 additions and 0 deletions
pkgs
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 ];
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue