Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 36 lines 1.0 kB view raw
1{ stdenv 2, lib 3, rustPlatform 4, openssl 5, nushell 6, pkg-config 7, Security 8, nix-update-script 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "nushell_plugin_gstat"; 13 inherit (nushell) version src; 14 cargoHash = "sha256-o/cOHlwo2TBlO+e6DBBKf5x6bgVGozVNMGRb2nCWPT4="; 15 16 nativeBuildInputs = [ pkg-config ]; 17 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ]; 18 cargoBuildFlags = [ "--package nu_plugin_gstat" ]; 19 20 checkPhase = '' 21 cargo test --manifest-path crates/nu_plugin_gstat/Cargo.toml 22 ''; 23 24 passthru.updateScript = nix-update-script { 25 # Skip the version check and only check the hash because we inherit version from nushell. 26 extraArgs = [ "--version=skip" ]; 27 }; 28 29 meta = with lib; { 30 description = "A git status plugin for Nushell"; 31 homepage = "https://github.com/nushell/nushell/tree/${version}/crates/nu_plugin_gstat"; 32 license = licenses.mpl20; 33 maintainers = with maintainers; [ mrkkrp aidalgol ]; 34 platforms = with platforms; all; 35 }; 36}