nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 1.2 kB view raw
1{ 2 stdenvNoCC, 3 fetchFromGitLab, 4 nix-update-script, 5 lib, 6 full ? true, 7 # see https://gitlab.com/jschx/ufetch for a list 8 osName ? "nixos", 9}: 10 11stdenvNoCC.mkDerivation (finalAttrs: { 12 pname = "ufetch"; 13 version = "0.4"; 14 15 src = fetchFromGitLab { 16 owner = "jschx"; 17 repo = "ufetch"; 18 rev = "v${finalAttrs.version}"; 19 hash = "sha256-icrf7OjDageBRSBD40wX2ZzCvB6T5n0jgd5aRROGqCA="; 20 }; 21 22 installPhase = '' 23 runHook preInstall 24 mkdir -p $out/bin $out/share/licenses/ufetch 25 ${ 26 if !full then 27 "install -Dm755 ufetch-${osName} $out/bin/ufetch" 28 else 29 '' 30 install -Dm755 ufetch-* $out/bin 31 ln -s $out/bin/ufetch-${osName} $out/bin/ufetch 32 '' 33 } 34 install -Dm644 LICENSE $out/share/licenses/ufetch/LICENSE 35 runHook postInstall 36 ''; 37 38 passthru.updateScript = nix-update-script { }; 39 40 meta = { 41 description = "Tiny system info for Unix-like operating systems"; 42 homepage = "https://gitlab.com/jschx/ufetch"; 43 license = lib.licenses.mit; 44 platforms = lib.platforms.linux; 45 mainProgram = "ufetch"; 46 maintainers = with lib.maintainers; [ mrtnvgr ]; 47 }; 48})