mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, pkg-config
|
|
, openssl
|
|
, stdenv
|
|
, libiconv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "novops";
|
|
version = "0.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PierreBeucher";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-b6CM7dDjEzFuL6SZQsFMBOq8p66Jnd7BdXFspWYlTps=";
|
|
};
|
|
|
|
cargoHash = "sha256-mhNEeczbqXVsHoErwEIPUuJqNcyR6dTKBDeHCVH+KsE=";
|
|
|
|
buildInputs = [
|
|
openssl # required for openssl-sys
|
|
] ++ lib.optional stdenv.isDarwin [
|
|
libiconv
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config # required for openssl-sys
|
|
];
|
|
|
|
cargoTestFlags = [
|
|
# Only run lib tests (unit tests)
|
|
# All other tests are integration tests which should not be run with Nix build
|
|
"--lib"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Cross-platform secret & config manager for development and CI environments";
|
|
homepage = "https://github.com/PierreBeucher/novops";
|
|
license = licenses.lgpl3;
|
|
maintainers = with maintainers; [ pbeucher ];
|
|
mainProgram = "novops";
|
|
};
|
|
}
|