mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
755b915a15
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/'
33 lines
657 B
Nix
33 lines
657 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "0x";
|
|
version = "unstable-2022-07-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mcy";
|
|
repo = "0x";
|
|
rev = "8070704b8efdd1f16bc7e01e393230f16cd8b0a6";
|
|
hash = "sha256-NzD/j8rBfk/cpoBnkFHFqpXz58mswLZr8TUS16vlrZQ=";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
};
|
|
|
|
postPatch = ''
|
|
ln -s ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mcy/0x";
|
|
description = "Colorful, configurable xxd";
|
|
mainProgram = "0x";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
};
|
|
}
|