mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, openssl
|
|
, darwin
|
|
, pkg-config
|
|
, testers
|
|
, fetchzip
|
|
, ripunzip
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "ripunzip";
|
|
version = "1.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "ripunzip";
|
|
rev = "v${version}";
|
|
hash = "sha256-qDY81SxTVfGBCZU2jxuOswyTqzN7Mk3q7Ns6+ShRUnU=";
|
|
};
|
|
|
|
cargoHash = "sha256-8AKmIzMrxpQBDrW8C/OFZYvFn+u4yvWbMXSsCC0NX+Y=";
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Security SystemConfiguration ]);
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
passthru.tests = {
|
|
fetchzipWithRipunzip = testers.invalidateFetcherByDrvHash (fetchzip.override { unzip = ripunzip; }) {
|
|
url = "https://github.com/google/ripunzip/archive/cb9caa3ba4b0e27a85e165be64c40f1f6dfcc085.zip";
|
|
hash = "sha256-BoErC5VL3Vpvkx6xJq6J+eUJrBnjVEdTuSo7zh98Jy4=";
|
|
};
|
|
version = testers.testVersion {
|
|
package = ripunzip;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Tool to unzip files in parallel";
|
|
mainProgram = "ripunzip";
|
|
homepage = "https://github.com/google/ripunzip";
|
|
license = with lib.licenses; [ mit asl20 ];
|
|
maintainers = [ maintainers.lesuisse ];
|
|
};
|
|
}
|