From cef2787c95351ca029d118698b80694277ad6337 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Thu, 27 Jun 2024 20:55:21 +0200 Subject: [PATCH] Add README.md --- .envrc | 2 ++ CMakeLists.txt | 2 +- README.md | 6 ++++++ flake.nix | 15 ++++++++++++--- src/CMakeLists.txt | 2 +- 5 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 .envrc create mode 100644 README.md diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..e3fecb3 --- /dev/null +++ b/.envrc @@ -0,0 +1,2 @@ +use flake + diff --git a/CMakeLists.txt b/CMakeLists.txt index e76f894..9db8ed7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,4 +25,4 @@ find_package(KF${QT_MAJOR_VERSION} REQUIRED COMPONENTS add_subdirectory(src) -feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) \ No newline at end of file +feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) diff --git a/README.md b/README.md new file mode 100644 index 0000000..ce14c18 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# How to run it + +1. `nix develop` +2. `cmakeConfigurePhase` +3. `buildPhase` +4. `./src/tutorial_kirigami2` diff --git a/flake.nix b/flake.nix index f49f1c0..1487543 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "Test Phoenix Live View"; + description = "Kirigami"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; @@ -15,8 +15,17 @@ devShells = rec { default = pkgs.mkShell { buildInputs = [ - pkgs.kdePackages.kirigami - ]; + pkgs.kdePackages.qtbase + pkgs.kdePackages.kirigami + pkgs.kdePackages.ki18n + pkgs.kdePackages.kcoreaddons + pkgs.ninja + pkgs.cmake + pkgs.gcc + ]; + + dontFixCmake = true; + cmakeFlags = ["-DQT_MAJOR_VERSION=6"]; }; }; }); diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 181a103..6b0f943 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -14,4 +14,4 @@ target_link_libraries(tutorial_kirigami2 KF${QT_MAJOR_VERSION}::I18n ) -install(TARGETS tutorial_kirigami2 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) \ No newline at end of file +install(TARGETS tutorial_kirigami2 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})