nixpkgs/pkgs/development/libraries/libunarr/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
790 B
Nix
Raw Normal View History

2023-09-05 09:30:48 +00:00
{ lib
, stdenv
, fetchurl
, cmake
}:
stdenv.mkDerivation rec {
pname = "libunarr";
2023-10-21 12:07:36 +00:00
version = "1.1.1";
src = fetchurl {
url = "https://github.com/selmf/unarr/releases/download/v${version}/unarr-${version}.tar.xz";
2023-10-21 12:07:36 +00:00
hash = "sha256-Mo76BOqZbdOJFrEkeozxdqwpuFyvkhdONNMZmN5BdNI=";
};
2023-09-05 09:30:48 +00:00
postPatch = lib.optionalString stdenv.isDarwin ''
2022-10-26 17:10:02 +00:00
substituteInPlace CMakeLists.txt \
2023-09-05 09:30:48 +00:00
--replace "-flto" "" \
--replace "AppleClang" "Clang"
2022-05-18 11:47:10 +00:00
'';
2023-09-05 09:30:48 +00:00
nativeBuildInputs = [
cmake
];
meta = with lib; {
homepage = "https://github.com/selmf/unarr";
description = "Lightweight decompression library with support for rar, tar and zip archives";
2022-10-26 17:10:02 +00:00
license = licenses.lgpl3Plus;
2023-09-05 09:30:48 +00:00
maintainers = with maintainers; [ wegank ];
platforms = platforms.unix;
};
}