Merge pull request #231706 from figsoda/orogene

This commit is contained in:
figsoda 2023-05-15 09:18:53 -04:00 committed by GitHub
commit 875c926273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "orogene";
version = "0.3.25";
src = fetchFromGitHub {
owner = "orogene";
repo = "orogene";
rev = "v${version}";
hash = "sha256-QQhlkTg14nPYQvKYoZf07PjknTZZRUTzBzNFJeovny8=";
fetchSubmodules = true;
};
cargoHash = "sha256-uxW196f/PEVxGHmZ7hUyvaIz1OD1XmyVEuwk8Hdvsvs=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
preCheck = ''
export CI=true
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "A package manager for tools that use node_modules";
homepage = "https://github.com/orogene/orogene";
changelog = "https://github.com/orogene/orogene/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [ asl20 isc ];
maintainers = with maintainers; [ figsoda ];
mainProgram = "oro";
};
}

View File

@ -23297,6 +23297,8 @@ with pkgs;
orcania = callPackage ../development/libraries/orcania { };
orogene = callPackage ../development/tools/misc/orogene { };
osm-gps-map = callPackage ../development/libraries/osm-gps-map { };
osmid = callPackage ../applications/audio/osmid { };