nixpkgs/pkgs/tools/misc/freshfetch/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

48 lines
964 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, AppKit
, CoreFoundation
, DiskArbitration
, Foundation
, IOKit
}:
rustPlatform.buildRustPackage rec {
pname = "freshfetch";
version = "0.2.0";
src = fetchFromGitHub {
owner = "k4rakara";
repo = pname;
rev = "v${version}";
sha256 = "1l9zngr5l12g71j85iyph4jjri3crxc2pi9q0gczrrzvs03439mn";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"clml_rs-0.3.0" = "sha256-KTAm0TCNHGeuOmqmLcZfjl2mQmWcCxWaTPOzA38qbUM=";
};
};
# freshfetch depends on rust nightly features
RUSTC_BOOTSTRAP = 1;
buildInputs = lib.optionals stdenv.isDarwin [
AppKit
CoreFoundation
DiskArbitration
Foundation
IOKit
];
meta = with lib; {
description = "Fresh take on neofetch";
homepage = "https://github.com/k4rakara/freshfetch";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "freshfetch";
};
}