Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
944 B
Nix
47 lines
944 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
fuse,
|
|
zlib,
|
|
withFuse ? true,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "sqlar";
|
|
version = "2018-01-07";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.sqlite.org/sqlar/tarball/4824e73896/sqlar-src-4824e73896.tar.gz";
|
|
sha256 = "09pikkbp93gqypn3da9zi0dzc47jyypkwc9vnmfzhmw7kpyv8nm9";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace 'gcc' '${stdenv.cc.targetPrefix}cc'
|
|
'';
|
|
|
|
buildInputs = [ zlib ] ++ lib.optional withFuse fuse;
|
|
|
|
buildFlags = [
|
|
"CFLAGS=-Wno-error"
|
|
"sqlar"
|
|
]
|
|
++ lib.optional withFuse "sqlarfs";
|
|
|
|
installPhase = ''
|
|
install -D -t $out/bin sqlar
|
|
''
|
|
+ lib.optionalString withFuse ''
|
|
install -D -t $out/bin sqlarfs
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://sqlite.org/sqlar";
|
|
description = "SQLite Archive utilities";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
};
|
|
}
|