diff options
author | Pierre beucher <pierre@crafteo.io> | 2024-03-22 14:53:48 +0100 |
---|---|---|
committer | Pierre beucher <pierre@crafteo.io> | 2024-03-22 14:53:48 +0100 |
commit | 58be68544f7674ae8ef57896994c740f24e1e718 (patch) | |
tree | 910d9923a61f4b5833f9c72b4976343a1ffba0d1 /pkgs/by-name/no | |
parent | 4cee1db7e86005d0c7f12e04813e60874c716626 (diff) |
novops: init at v0.12.1
Diffstat (limited to 'pkgs/by-name/no')
-rw-r--r-- | pkgs/by-name/no/novops/package.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/by-name/no/novops/package.nix b/pkgs/by-name/no/novops/package.nix new file mode 100644 index 0000000000000..f5893bf661919 --- /dev/null +++ b/pkgs/by-name/no/novops/package.nix @@ -0,0 +1,48 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, pkg-config +, openssl +, stdenv +, libiconv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "novops"; + version = "0.12.1"; + + src = fetchFromGitHub { + owner = "PierreBeucher"; + repo = pname; + rev = "v${version}"; + hash = "sha256-iQFw3m7dpAii/Nc1UQ/ZXTuHvj5vGsp3SOqd14uHUpc="; + }; + + cargoHash = "sha256-mQ7Vm80S4FALWiEsV+68pNrah36aYu7PediRlJUXLAk="; + + 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"; + }; +} |