Skip to content

Commit d213317

Browse files
author
aucub
committed
dart.sqlite3_flutter_libs: init
1 parent aa912db commit d213317

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

pkgs/development/compilers/dart/package-source-builders/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
rhttp = callPackage ./rhttp { };
1414
sqlcipher_flutter_libs = callPackage ./sqlcipher_flutter_libs { };
1515
sqlite3 = callPackage ./sqlite3 { };
16+
sqlite3_flutter_libs = callPackage ./sqlite3_flutter_libs { };
1617
system_tray = callPackage ./system-tray { };
1718
super_native_extensions = callPackage ./super_native_extensions { };
1819
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
stdenv,
3+
lib,
4+
fetchurl,
5+
}:
6+
7+
{ version, src, ... }:
8+
9+
let
10+
sqlite-autoconf = fetchurl {
11+
url = "https://sqlite.org/2024/sqlite-autoconf-3470000.tar.gz";
12+
hash = "sha256-g+shpvamSfUG34vTqrhaCPdVbO7V29jep0PqAD/DqVc=";
13+
};
14+
in
15+
stdenv.mkDerivation {
16+
pname = "sqlite3_flutter_libs";
17+
inherit version src;
18+
inherit (src) passthru;
19+
20+
postPatch = ''
21+
substituteInPlace linux/CMakeLists.txt \
22+
--replace-warn "https://sqlite.org/2024/sqlite-autoconf-3470000.tar.gz" "file://${sqlite-autoconf}" \
23+
--replace-warn "https://sqlite.org/2024/sqlite-autoconf-3460000.tar.gz" "file://${sqlite-autoconf}" \
24+
--replace-warn "https://www.sqlite.org/2022/sqlite-autoconf-3390000.tar.gz" "file://${sqlite-autoconf}"
25+
'';
26+
27+
installPhase = ''
28+
runHook preInstall
29+
30+
cp -r . $out
31+
32+
runHook postInstall
33+
'';
34+
}

0 commit comments

Comments
 (0)