depot/third_party/nixpkgs/pkgs/tools/package-management/opkg/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

54 lines
971 B
Nix

{ lib
, stdenv
, fetchurl
, pkg-config
, curl
, gpgme
, libarchive
, bzip2
, xz
, attr
, acl
, libxml2
, autoreconfHook
}:
stdenv.mkDerivation rec {
pname = "opkg";
version = "0.6.3";
src = fetchurl {
url = "https://downloads.yoctoproject.org/releases/opkg/opkg-${version}.tar.gz";
hash = "sha256-85OONZZGtAbEDV1EKhRnx+cjV/kauCLkQml1KWQeBt4=";
};
nativeBuildInputs = [
pkg-config
autoreconfHook
];
buildInputs = [
curl
gpgme
libarchive
bzip2
xz
attr
acl
libxml2
];
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
];
meta = with lib; {
description = "Lightweight package management system based upon ipkg";
homepage = "https://git.yoctoproject.org/cgit/cgit.cgi/opkg/";
changelog = "https://git.yoctoproject.org/opkg/tree/NEWS?h=v${version}";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ pSub ];
};
}