Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 47 lines 934 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, stdenv 5, AppKit 6, CoreFoundation 7, DiskArbitration 8, Foundation 9, IOKit 10}: 11 12rustPlatform.buildRustPackage rec { 13 pname = "freshfetch"; 14 version = "0.2.0"; 15 16 src = fetchFromGitHub { 17 owner = "k4rakara"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "1l9zngr5l12g71j85iyph4jjri3crxc2pi9q0gczrrzvs03439mn"; 21 }; 22 23 cargoLock = { 24 lockFile = ./Cargo.lock; 25 outputHashes = { 26 "clml_rs-0.3.0" = "sha256-KTAm0TCNHGeuOmqmLcZfjl2mQmWcCxWaTPOzA38qbUM="; 27 }; 28 }; 29 30 # freshfetch depends on rust nightly features 31 RUSTC_BOOTSTRAP = 1; 32 33 buildInputs = lib.optionals stdenv.isDarwin [ 34 AppKit 35 CoreFoundation 36 DiskArbitration 37 Foundation 38 IOKit 39 ]; 40 41 meta = with lib; { 42 description = "A fresh take on neofetch"; 43 homepage = "https://github.com/k4rakara/freshfetch"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ figsoda ]; 46 }; 47}