adslib: 0-unstable-2021-11-07 -> 0-unstable-2026-04-27
This commit is contained in:
@@ -2,23 +2,33 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
unstableGitUpdater,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "adslib";
|
||||
version = "0-unstable-2021-11-07";
|
||||
version = "0-unstable-2026-04-27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stlehmann";
|
||||
repo = "ADS";
|
||||
rev = "a894d4512a51f3ada026efbf9553e75ba9351e2e";
|
||||
sha256 = "SEh4yneTM1dfbWRdWlb5gP/uSeoOeE3g7g/rJWSTba8=";
|
||||
rev = "77953d58f2690436e82db9954e2e55878c5edaa4";
|
||||
hash = "sha256-UDPuzqD1krEZa7436k1NvE0lJUmNYG4kiP5fstoRDMc=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib
|
||||
cp adslib.so $out/lib/adslib.so
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
# Downstream consumers (e.g. pyads) load the shared library as
|
||||
# `adslib.so` rather than the meson default `libadslib.so`.
|
||||
ln -s libadslib.so $out/lib/adslib.so
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
@@ -28,5 +38,6 @@ stdenv.mkDerivation {
|
||||
homepage = "https://github.com/stlehmann/ADS";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ jamiemagee ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user