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/perseus-cli/default.nix
Normal file
36
pkgs/development/tools/perseus-cli/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, rustPlatform
|
||||
, fetchCrate
|
||||
, makeWrapper
|
||||
, wasm-pack
|
||||
, CoreServices
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "perseus-cli";
|
||||
version = "0.3.1";
|
||||
|
||||
src = fetchCrate {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-IYjLx9/4oWSXa4jhOtGw1GOHmrR7LQ6bWyN5zbOuEFs=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-i7MPmO9MoANZLzmR5gsD+v0gyDtFbzhsmE9xOsb88L0=";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/perseus \
|
||||
--prefix PATH : "${lib.makeBinPath [ wasm-pack ]}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://arctic-hen7.github.io/perseus";
|
||||
description = "A high-level web development framework for Rust with full support for server-side rendering and static generation";
|
||||
maintainers = with maintainers; [ max-niederman ];
|
||||
license = with licenses; [ mit ];
|
||||
mainProgram = "perseus";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue