16 src = fetchFromGitHub {
17 owner = "antares-sql";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-3zgr3Eefx3WDUW9/1NOaneUbFy3GTnJ3tGgivtW1K/g=";
23 npmDepsHash = "sha256-WJ5HVVa4rEOsvr52L/OGk+vlxRiKLJTxWmUnpN1FnbY=";
26 # Since version 0.7.28, package-lock is not updated properly so this patch update it to be able to build the package
27 # This patch will probably be removed in the next version
28 # If it does not build without it, you just need to do a npm update in the antares project and copy the patch
32 buildInputs = [ nodejs ];
39 npmBuildScript = "compile";
44 cp -rf dist/* $out/lib/node_modules/antares
45 find -name "*.ts" | xargs rm -f
46 makeWrapper ${lib.getExe electron} $out/bin/antares \
47 --add-flags $out/lib/node_modules/antares/main.js
51 mkdir -pv $out/share/icon/
52 icotool -x assets/icon.ico
53 cp icon_1_256x256x32.png $out/share/icon/antares.png
56 npmFlags = [ "--legacy-peer-deps" ];
57 env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
58 env.PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = "1";
63 desktopName = "Antares SQL";
68 startupWMClass = pname;
69 comment = "A modern, fast and productivity driven SQL client with a focus in UX";
70 categories = [ "Development" ];
75 description = "Modern, fast and productivity driven SQL client with a focus in UX";
76 homepage = "https://github.com/antares-sql/antares";
77 changelog = "https://github.com/antares-sql/antares/blob/v${version}/CHANGELOG.md";
78 license = lib.licenses.mit;
79 maintainers = with lib.maintainers; [ eymeric ];