Skip to content

Instantly share code, notes, and snippets.

@JonathanILevi
Last active October 16, 2020 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonathanILevi/26eda224c611534286d7c5eda71b9fdf to your computer and use it in GitHub Desktop.
Save JonathanILevi/26eda224c611534286d7c5eda71b9fdf to your computer and use it in GitHub Desktop.
GFIE
[FORMS.PP] ExceptionOccurred
Sender=Exception
Exception=Could not load library: libGLU.so.1
Stack trace:
$00000000006C11DC
TApplication.HandleException Could not load library: libGLU.so.1
Stack trace:
$00000000006C11DC
Exception at 00000000006C11DC: Exception:
Could not load library: libGLU.so.1.
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "gfie";
src = fetchzip {
url = "http://greenfishsoftware.org/dl.php?filename=gfie3.6_linux.zip";
sha256 = "1pb45ap1wvrkm3qh8kaa2v6wk14djd6i0ffp57z8pya0x3zi7w0w";
stripRoot = false;
};
dontBuild = true;
buildInputs = [ gtk2 libGLU ];
nativeBuildInputs = [ autoPatchelfHook ];
installPhase = ''
mkdir -p $out/bin
cp "$src/Greenfish Icon Editor Pro 3.6"/* $out/bin -r
##echo "sudo $PWD/keymouse-linux" >> $out/bin/keymouse
##chmod +x $out/bin/keymouse
##rm $out/bin/*.dll
##rm $out/bin/*.exe
ls $out/bin
'';
}
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "gfie";
version = "3.6";
src = fetchFromGitHub {
owner = "jonathanilevi";
repo = "gfie-src";
rev = "3.6";
sha256 = "1m8v43akrwr188305n0fif8s48s5x7iqgjxlp1mlxi0mw53hkpx1";
};
buildInputs = [ gtk2 libGLU python3 lazarus fpc gdb ];
configurePhase = "
cd $src
sh linux_before_build.sh
";
buildPhase = "
cd $src
sh linux_build.sh
";
installPhase = ''
mkdir -p $out/bin
cp "$src/Greenfish Icon Editor Pro 3.6"/* $out/bin -r
ls $out/bin
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment