Compare commits

...

2 Commits

Author SHA1 Message Date
APEX FIGHT
a884e64fe0 notes and framework for nix-shell env 2025-10-31 21:39:18 -04:00
APEX FIGHT
359a34ddc5 basic build script for firefox 2025-10-31 21:39:05 -04:00
3 changed files with 37 additions and 0 deletions

20
src/build.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash --pure
#! nix-shell -p bash curl gcc zlib libffi icu77
VERSION="140.4.0esr"
DOWNLOAD="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/source/firefox-$VERSION.source.tar.xz/"
BUILDPATH=$(realpath .)
#unzip this or something
curl -RO $DOWNLOAD
tar -xzf "firefox-$VERSION.source.tar.xz src"
cd "src/js/src"
mkdir _build
cd _build
../configure --disable-jemalloc --with-system-zlib --with-system-icu --prefix=$BUILDPATH \
--with-intl-api --enable-optimize
make
make install

4
src/notes.txt Normal file
View File

@@ -0,0 +1,4 @@
VERSION = "140.4.0esr"
LINK = ftp.mozilla.org/pub/firefox/releases/$VERSION/source/firefox-$VERSION.source.tar.xz/
// (add .asc for hash)

13
src/shell.nix Normal file
View File

@@ -0,0 +1,13 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = with pkgs.buildPackages; [
];
shellHook = ''
'';
}