mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 08:44:31 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
92 lines
2.3 KiB
Nix
92 lines
2.3 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
coreutils,
|
|
gawk,
|
|
procps,
|
|
gnused,
|
|
bc,
|
|
findutils,
|
|
xdpyinfo,
|
|
xprop,
|
|
gnugrep,
|
|
ncurses,
|
|
pciutils,
|
|
darwin,
|
|
}:
|
|
|
|
let
|
|
path = lib.makeBinPath (
|
|
[
|
|
coreutils
|
|
gawk
|
|
gnused
|
|
findutils
|
|
gnugrep
|
|
ncurses
|
|
bc
|
|
pciutils
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
procps
|
|
xdpyinfo
|
|
xprop
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin (
|
|
with darwin;
|
|
[
|
|
adv_cmds
|
|
DarwinTools
|
|
system_cmds
|
|
"/usr" # some commands like defaults is not available to us
|
|
]
|
|
)
|
|
);
|
|
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "screenfetch";
|
|
version = "3.9.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KittyKatt";
|
|
repo = "screenFetch";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-UNZMCLXhH4wDV0/fGWsB+KAi6aJVuPs6zpWXIQAqnjo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
install -Dm 0755 screenfetch-dev $out/bin/screenfetch
|
|
install -Dm 0644 screenfetch.1 $out/share/man/man1/screenfetch.1
|
|
install -Dm 0644 -t $out/share/doc/screenfetch CHANGELOG COPYING README.mkdn TODO
|
|
|
|
# Fix all of the dependencies of screenfetch
|
|
patchShebangs $out/bin/screenfetch
|
|
wrapProgram "$out/bin/screenfetch" \
|
|
--prefix PATH : ${path}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Fetches system/theme information in terminal for Linux desktop screenshots";
|
|
longDescription = ''
|
|
screenFetch is a "Bash Screenshot Information Tool". This handy Bash
|
|
script can be used to generate one of those nifty terminal theme
|
|
information + ASCII distribution logos you see in everyone's screenshots
|
|
nowadays. It will auto-detect your distribution and display an ASCII
|
|
version of that distribution's logo and some valuable information to the
|
|
right. There are options to specify no ascii art, colors, taking a
|
|
screenshot upon displaying info, and even customizing the screenshot
|
|
command! This script is very easy to add to and can easily be extended.
|
|
'';
|
|
license = licenses.gpl3;
|
|
homepage = "https://github.com/KittyKatt/screenFetch";
|
|
maintainers = with maintainers; [ relrod ];
|
|
platforms = platforms.all;
|
|
mainProgram = "screenfetch";
|
|
};
|
|
}
|