2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, curl
|
|
|
|
, gpgme
|
|
|
|
, libarchive
|
|
|
|
, bzip2
|
|
|
|
, xz
|
|
|
|
, attr
|
|
|
|
, acl
|
|
|
|
, libxml2
|
|
|
|
, autoreconfHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "opkg";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.6.3";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://downloads.yoctoproject.org/releases/opkg/opkg-${version}.tar.gz";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-85OONZZGtAbEDV1EKhRnx+cjV/kauCLkQml1KWQeBt4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
curl
|
|
|
|
gpgme
|
|
|
|
libarchive
|
|
|
|
bzip2
|
|
|
|
xz
|
|
|
|
attr
|
|
|
|
acl
|
|
|
|
libxml2
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A lightweight package management system based upon ipkg";
|
|
|
|
homepage = "https://git.yoctoproject.org/cgit/cgit.cgi/opkg/";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://git.yoctoproject.org/opkg/tree/NEWS?h=v${version}";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
|
|
|
}
|