uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
36
pkgs/tools/archivers/unrar-wrapper/default.nix
Normal file
36
pkgs/tools/archivers/unrar-wrapper/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, buildPythonApplication, fetchFromGitHub, unar }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "unrar-wrapper";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openSUSE";
|
||||
repo = "unrar_wrapper";
|
||||
rev = "unrar_wrapper-${version}";
|
||||
sha256 = "sha256-HjrUif8MrbtLjRQMAPZ/Y2o43rGSDj0HHY4fZQfKz5w=";
|
||||
};
|
||||
|
||||
makeWrapperArgs = [
|
||||
"--prefix" "PATH" ":" "${lib.makeBinPath [ unar ]}"
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
ln -s $out/bin/unrar_wrapper $out/bin/unrar
|
||||
rm -rf $out/nix-support/propagated-build-inputs
|
||||
'';
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/openSUSE/unrar_wrapper";
|
||||
description = "Backwards compatibility between unar and unrar";
|
||||
longDescription = ''
|
||||
unrar_wrapper is a wrapper python script that transforms the basic UnRAR commands
|
||||
to unar and lsar calls in order to provide a backwards compatibility.
|
||||
'';
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ artturin ];
|
||||
};
|
||||
}
|
||||
5
pkgs/tools/archivers/unrar-wrapper/setup-hook.sh
Normal file
5
pkgs/tools/archivers/unrar-wrapper/setup-hook.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
unpackCmdHooks+=(_tryUnrar)
|
||||
_tryUnrar() {
|
||||
if ! [[ "$curSrc" =~ \.rar$ ]]; then return 1; fi
|
||||
unrar x "$curSrc" >/dev/null
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue