Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 25 additions & 7 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
{ }:
{
pkgs ? import <nixpkgs> {
overlays = [
(final: prev: {
# Haxe does not compile properly using the overlay
# below, due to an OCaml error. Do note that the patches
# have been removed as a result of an outdated patch.
#
# haxe = prev.haxe.overrideAttrs (old: {
# version = "4.3.7";
# src = prev.fetchgit {
# url = "https://github.com/HaxeFoundation/haxe.git";
# tag = "4.3.7";
# hash = "sha256-sQb7MCoH2dZOvNmDQ9P0yFYrSXYOMn4FS/jlyjth39Y=";
# fetchSubmodules = true;
# };
# patches = [ ];
# });
})
];
config = { };
},
}:
let
pkgs = import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/c407032be28ca2236f45c49cfb2b8b3885294f7f.tar.gz";
}) { };

libs =
with pkgs;
[
Expand All @@ -29,14 +47,14 @@ pkgs.mkShell {
packages = with pkgs; [
haxe
neko
libsForQt5.qttools
kdePackages.qttools
];

buildInputs = libs;

LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath libs;

shellHook = ''
source update.sh
./building/setup-unix.sh
'';
}