add derivation

This commit is contained in:
Giulio De Pasquale 2021-10-06 09:54:48 +01:00
parent 7ebbb11486
commit 92031da0dd

19
default.nix Normal file
View File

@ -0,0 +1,19 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
inherit system;
name = "binaryninja";
src = [ ./personal ];
dontBuild = true;
buildInputs = [ xorg.libX11 fontconfig glib xorg.libXrender libGL dbus ];
nativeBuildInputs = [ autoPatchelfHook ];
installPhase = ''
mkdir -p $out/bin
cp -r $src/* $out
ln -s $out/binaryninja $out/bin
'';
}