mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
commit
8451d7f4ca
@ -5,20 +5,21 @@
|
|||||||
, darwin
|
, darwin
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, libiconv
|
, libiconv
|
||||||
|
, nrxAlias ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "nrr";
|
pname = "nrr";
|
||||||
version = "0.8.0";
|
version = "0.9.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ryanccn";
|
owner = "ryanccn";
|
||||||
repo = "nrr";
|
repo = "nrr";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-4zQi7kQxcRXpYuSjolSZoDqX+CcGmq4dvChPlZZZVso=";
|
hash = "sha256-94BeBCYCxZBoOp6xo4I/uxd6ULjIfmF4nw/vUWoaEpo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-XNnyEFEzKQ5N0xtskaUudcb2LtAiEsd6h3D/FdyIbHc=";
|
cargoHash = "sha256-DTQTIAk914XC+LecQTXk1TdBc/5sMFG8KiD9lO5HLiM=";
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
darwin.apple_sdk.frameworks.CoreFoundation
|
darwin.apple_sdk.frameworks.CoreFoundation
|
||||||
@ -31,8 +32,10 @@ rustPlatform.buildRustPackage rec {
|
|||||||
pkg-config
|
pkg-config
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postInstall = lib.optionalString nrxAlias "ln -s $out/bin/nr{r,x}";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Minimal, blazing fast Node.js script runner";
|
description = "Minimal, blazing fast npm scripts runner";
|
||||||
maintainers = with maintainers; [ ryanccn ];
|
maintainers = with maintainers; [ ryanccn ];
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
mainProgram = "nrr";
|
mainProgram = "nrr";
|
||||||
|
Loading…
Reference in New Issue
Block a user