Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{
|
|
stdenvNoCC,
|
|
fetchFromGitLab,
|
|
lib,
|
|
full ? true,
|
|
# see https://gitlab.com/jschx/ufetch for a list
|
|
osName ? "nixos",
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "ufetch";
|
|
version = "0.4";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "jschx";
|
|
repo = "ufetch";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-icrf7OjDageBRSBD40wX2ZzCvB6T5n0jgd5aRROGqCA=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin $out/share/licenses/ufetch
|
|
${
|
|
if !full then
|
|
"install -Dm755 ufetch-${osName} $out/bin/ufetch"
|
|
else
|
|
''
|
|
install -Dm755 ufetch-* $out/bin
|
|
ln -s $out/bin/ufetch-${osName} $out/bin/ufetch
|
|
''
|
|
}
|
|
install -Dm644 LICENSE $out/share/licenses/ufetch/LICENSE
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Tiny system info for Unix-like operating systems";
|
|
homepage = "https://gitlab.com/jschx/ufetch";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "ufetch";
|
|
maintainers = with lib.maintainers; [ mrtnvgr ];
|
|
};
|
|
})
|