mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
fetch: init at 2.1.0 (#532310)
This commit is contained in:
commit
9fc37560d0
2 changed files with 51 additions and 0 deletions
|
|
@ -9888,6 +9888,12 @@
|
|||
githubId = 3217744;
|
||||
name = "Peter Ferenczy";
|
||||
};
|
||||
ghastrum = {
|
||||
name = "Dennis Malmin";
|
||||
email = "dennis.malmin@tuta.com";
|
||||
github = "Ghastrum";
|
||||
githubId = 276720856;
|
||||
};
|
||||
ghostbuster91 = {
|
||||
name = "Kasper Kondzielski";
|
||||
email = "kghost0@gmail.com";
|
||||
|
|
|
|||
45
pkgs/by-name/fe/fetch/package.nix
Normal file
45
pkgs/by-name/fe/fetch/package.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
# linux dependencies
|
||||
makeWrapper,
|
||||
fastfetch,
|
||||
pciutils,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "fetch";
|
||||
version = "2.1.0";
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "areofyl";
|
||||
repo = "fetch";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-9ixx7XJcY4ktcN/lUfjvFljvHIEO2ktOebeGgL0ulHg=";
|
||||
};
|
||||
|
||||
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/fetch \
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
fastfetch
|
||||
pciutils
|
||||
]
|
||||
}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Animated 3D fetch tool that renders your distro logo as a spinning bas-relief";
|
||||
homepage = "https://github.com/areofyl/fetch";
|
||||
changelog = "https://github.com/areofyl/fetch/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.isc;
|
||||
maintainers = with lib.maintainers; [ ghastrum ];
|
||||
mainProgram = "fetch";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue