uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
35
pkgs/tools/misc/heatseeker/default.nix
Normal file
35
pkgs/tools/misc/heatseeker/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, fetchFromGitHub, rustPlatform, coreutils }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "heatseeker";
|
||||
version = "1.7.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rschmitt";
|
||||
repo = "heatseeker";
|
||||
rev = "v${version}";
|
||||
sha256 = "1x7mdyf1m17s55f6yjdr1j510kb7a8f3zkd7lb2kzdc7nd3vgaxg";
|
||||
};
|
||||
|
||||
cargoSha256 = "0qs2s1bi93sdmmmfmkcnf55fm2blj9f095k95m210fyv5fpizdfm";
|
||||
|
||||
# https://github.com/rschmitt/heatseeker/issues/42
|
||||
# I've suggested using `/usr/bin/env stty`, but doing that isn't quite as simple
|
||||
# as a substitution, and this works since we have the path to coreutils stty.
|
||||
patchPhase = ''
|
||||
substituteInPlace src/screen/unix.rs --replace "/bin/stty" "${coreutils}/bin/stty"
|
||||
'';
|
||||
|
||||
# some tests require a tty, this variable turns them off for Travis CI,
|
||||
# which we can also make use of
|
||||
TRAVIS = "true";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A general-purpose fuzzy selector";
|
||||
homepage = "https://github.com/rschmitt/heatseeker";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.michaelpj ];
|
||||
mainProgram = "hs";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue