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-05-11 14:36:53 +00:00
version = "0.9.1";
2024-01-26 10:37:12 +00:00
src = fetchFromGitHub {
owner = "ryanccn";
repo = "nrr";
rev = "v${version}";
2024-05-11 14:36:53 +00:00
hash = "sha256-wof/KmoHiBkcn2aTh+M6bNH/B6Le3H6hnT8BzUCs0Pw=";
2024-01-26 10:37:12 +00:00
};
2024-05-11 14:36:53 +00:00
cargoHash = "sha256-BtYZNZxFjgY/BFd1kwGyy/F1iRezSDxoPHF4exrNzuk=";
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";
};
}