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
42
pkgs/tools/misc/apt-offline/default.nix
Normal file
42
pkgs/tools/misc/apt-offline/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, fetchFromGitHub, python3Packages, nix-update-script, gnupg }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "apt-offline";
|
||||
version = "1.8.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rickysarraf";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "RBf/QG0ewLS6gnQTBXi0I18z8QrxoBAqEXZ7dro9z5A=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace org.debian.apt.aptoffline.policy \
|
||||
--replace /usr/bin/ "$out/bin"
|
||||
|
||||
substituteInPlace apt_offline_core/AptOfflineCoreLib.py \
|
||||
--replace /usr/bin/gpgv "${gnupg}/bin/gpgv"
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
rm "$out/bin/apt-offline-gui"
|
||||
rm "$out/bin/apt-offline-gui-pkexec"
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
pythonimportsCheck = [ "apt-offline" ];
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
attrPath = pname;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/rickysarraf/apt-offline";
|
||||
description = "Offline APT package manager";
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue