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
38
pkgs/development/tools/selene/default.nix
Normal file
38
pkgs/development/tools/selene/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, robloxSupport ? true
|
||||
, pkg-config
|
||||
, openssl
|
||||
, stdenv
|
||||
, Security
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "selene";
|
||||
version = "0.16.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kampfkarren";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-S0EeFJS90bzQ7C+hN4CyZ7l9wmizT2d3P6utshI5JWs=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-3J1Q595LxAI0LBP4/cLHDrMbZBnoA2+OSr8/erQcN+0=";
|
||||
|
||||
nativeBuildInputs = lib.optional robloxSupport pkg-config;
|
||||
|
||||
buildInputs = lib.optional robloxSupport openssl
|
||||
++ lib.optional (robloxSupport && stdenv.isDarwin) Security;
|
||||
|
||||
buildNoDefaultFeatures = !robloxSupport;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A blazing-fast modern Lua linter written in Rust";
|
||||
homepage = "https://github.com/kampfkarren/selene";
|
||||
changelog = "https://github.com/kampfkarren/selene/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mpl20;
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue