nixpkgs/pkgs/by-name/nr/nrr/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
918 B
Nix
Raw Normal View History

2024-01-26 10:37:12 +00:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
, pkg-config
, libiconv
2024-04-19 02:52:06 +00:00
, nrxAlias ? true
2024-01-26 10:37:12 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "nrr";
2024-07-27 07:40:17 +00:00
version = "0.9.4";
2024-01-26 10:37:12 +00:00
src = fetchFromGitHub {
owner = "ryanccn";
repo = "nrr";
rev = "v${version}";
2024-07-27 07:40:17 +00:00
hash = "sha256-X1zgQvgjWbTQAOHAZ+G2u0yO+qeiU0hamTLM39VOK20=";
2024-01-26 10:37:12 +00:00
};
2024-07-27 07:40:17 +00:00
cargoHash = "sha256-NpvYN68l5wibrFxST35sWDBbUG1mauNszA8NYIWGGa0=";
2024-01-26 10:37:12 +00:00
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.IOKit
libiconv
];
nativeBuildInputs = [
pkg-config
];
2024-04-19 02:52:06 +00:00
postInstall = lib.optionalString nrxAlias "ln -s $out/bin/nr{r,x}";
2024-01-26 10:37:12 +00:00
meta = with lib; {
2024-04-19 02:52:06 +00:00
description = "Minimal, blazing fast npm scripts runner";
2024-01-26 10:37:12 +00:00
maintainers = with maintainers; [ ryanccn ];
license = licenses.gpl3Only;
mainProgram = "nrr";
};
}