Skip to content

Commit

Permalink
flake: bump
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao committed Sep 10, 2022
1 parent 82b1de2 commit de4b89b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ qt_add_qml_module(across
URI "Arktoria.ACross"
VERSION 1.0
RESOURCE_PREFIX "/"
NO_IMPORT_SCAN
QML_FILES
${QML_FILES}
)
Expand Down
21 changes: 10 additions & 11 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 12 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
inputs = {
magic_enum = {
url = "github:Neargye/magic_enum/38f86e4d093cfc9034a140d37de2168e3951bef3";
url = "github:Neargye/magic_enum/c7a0c83ed44ec793285ebab58a86b232d10b5082";
flake = false;
};
semver = {
Expand All @@ -12,7 +12,7 @@
url = "github:itay-grudev/SingleApplication/0d7b2630bda26f7dd4752c90faa9719455cab433";
flake = false;
};
nixpkgs.url = "github:NixOS/nixpkgs?ref=pull/141883/head";
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs@{ self, nixpkgs, flake-utils, ... }:
Expand All @@ -27,13 +27,16 @@
}
) // {
overlay = final: prev: {
across = final.qt6.mkDerivation {
across = final.stdenv.mkDerivation {
name = "across";
src = self;
inherit (final.qt6.qtbase) qtDocPrefix qtQmlPrefix qtPluginPrefix;
cmakeFlags = [ "-DFETCH_SINGLE_APPLICATION=OFF" ];
cmakeFlags = [
"-DFETCH_SINGLE_APPLICATION=OFF"
"-DUSE_CORE_V5=ON"
];
nativeBuildInputs = with final; [
cmake
ninja
pkg-config
qt6.wrapQtAppsHook
];
Expand All @@ -48,20 +51,19 @@
nlohmann_json
magic_enum
semver
qt6.qtbase
qt6.qttools
qt6.qtwayland
qt6.qtdeclarative
qt6.qt5compat
qt6.qttools
qt6.qttranslations
qt6.qtsvg
qt6.qtimageformats
];
postPatch = ''
rm -fr 3rdpart/*
ln -s ${inputs.single_application} 3rdpart/SingleApplication
'';
dontWrapQtApps = true;
preFixup = with final.qt6;''
wrapQtApp "$out/bin/across" --prefix QML2_IMPORT_PATH : "${qtdeclarative}/qml:${qt5compat}/qml:${qtimageformats}/qml"
'';
};
magic_enum = final.stdenv.mkDerivation {
name = "magic_enum";
Expand Down

0 comments on commit de4b89b

Please sign in to comment.