Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, rustPlatform
3, fetchFromGitHub
4, pkg-config
5, openssl
6, stdenv
7, darwin
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "orogene";
12 version = "0.3.27";
13
14 src = fetchFromGitHub {
15 owner = "orogene";
16 repo = "orogene";
17 rev = "v${version}";
18 hash = "sha256-y58S8oou1GBR1Cx77IzLvLmZ/MN88P9k1RGCFOVbHHc=";
19 fetchSubmodules = true;
20 };
21
22 cargoHash = "sha256-hZQxzhq61h83geLazhEkoaB1oRz/xSXuwW7BuBWxfHs=";
23
24 nativeBuildInputs = [
25 pkg-config
26 ];
27
28 buildInputs = [
29 openssl
30 ] ++ lib.optionals stdenv.isDarwin [
31 darwin.apple_sdk.frameworks.Security
32 ];
33
34 preCheck = ''
35 export CI=true
36 export HOME=$(mktemp -d)
37 '';
38
39 meta = with lib; {
40 description = "A package manager for tools that use node_modules";
41 homepage = "https://github.com/orogene/orogene";
42 changelog = "https://github.com/orogene/orogene/blob/${src.rev}/CHANGELOG.md";
43 license = with licenses; [ asl20 isc ];
44 maintainers = with maintainers; [ figsoda ];
45 mainProgram = "oro";
46 };
47}