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
36
pkgs/development/tools/parinfer-rust/default.nix
Normal file
36
pkgs/development/tools/parinfer-rust/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, rustPlatform, fetchFromGitHub, llvmPackages }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "parinfer-rust";
|
||||
version = "0.4.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "eraserhd";
|
||||
repo = "parinfer-rust";
|
||||
rev = "v${version}";
|
||||
sha256 = "0hj5in5h7pj72m4ag80ing513fh65q8xlsf341qzm3vmxm3y3jgd";
|
||||
};
|
||||
|
||||
cargoSha256 = "1lam4gwzcj6w0pyxf61l2cpbvvf5gmj2gwi8dangnhd60qhlnvrx";
|
||||
|
||||
nativeBuildInputs = [ llvmPackages.clang ];
|
||||
buildInputs = [ llvmPackages.libclang ];
|
||||
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/kak/autoload/plugins
|
||||
cp rc/parinfer.kak $out/share/kak/autoload/plugins/
|
||||
|
||||
rtpPath=$out/plugin
|
||||
mkdir -p $rtpPath
|
||||
sed "s,let s:libdir = .*,let s:libdir = '${placeholder "out"}/lib'," \
|
||||
plugin/parinfer.vim > $rtpPath/parinfer.vim
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Infer parentheses for Clojure, Lisp, and Scheme";
|
||||
homepage = "https://github.com/eraserhd/parinfer-rust";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ eraserhd ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue