ouch: disable unrar by default (#415776)

Aleksana 151727b9 c7b9bc5c

Changed files
+16 -2
pkgs
by-name
ou
+16 -2
pkgs/by-name/ou/ouch/package.nix
···
git,
zlib,
zstd,
+
+
# RAR code is under non-free unRAR license
+
# see the meta.license section below for more details
+
enableUnfree ? false,
}:
rustPlatform.buildRustPackage rec {
···
zstd
];
-
buildFeatures = [ "zstd/pkg-config" ];
+
buildNoDefaultFeatures = true;
+
buildFeatures =
+
[
+
"use_zlib"
+
"use_zstd_thin"
+
# "bzip3" will be optional in the next version
+
"zstd/pkg-config"
+
]
+
++ lib.optionals enableUnfree [
+
"unrar"
+
];
postInstall = ''
installManPage artifacts/*.1
···
description = "Command-line utility for easily compressing and decompressing files and directories";
homepage = "https://github.com/ouch-org/ouch";
changelog = "https://github.com/ouch-org/ouch/blob/${version}/CHANGELOG.md";
-
license = lib.licenses.mit;
+
license = with lib.licenses; [ mit ] ++ lib.optionals enableUnfree [ unfreeRedistributable ];
maintainers = with lib.maintainers; [
figsoda
psibi