Add README.md

This commit is contained in:
Florian RICHER 2024-06-27 20:55:21 +02:00
parent 2171f1a6c8
commit cef2787c95
5 changed files with 22 additions and 5 deletions

2
.envrc Normal file
View file

@ -0,0 +1,2 @@
use flake

View file

@ -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)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)

6
README.md Normal file
View file

@ -0,0 +1,6 @@
# How to run it
1. `nix develop`
2. `cmakeConfigurePhase`
3. `buildPhase`
4. `./src/tutorial_kirigami2`

View file

@ -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"];
};
};
});

View file

@ -14,4 +14,4 @@ target_link_libraries(tutorial_kirigami2
KF${QT_MAJOR_VERSION}::I18n
)
install(TARGETS tutorial_kirigami2 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(TARGETS tutorial_kirigami2 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})