adding info to readme about nix

This commit is contained in:
Chris Cochrun 2022-07-07 15:30:37 -05:00
parent db70ac90f2
commit 99afdd0b0f
3 changed files with 13 additions and 13 deletions

View file

@ -32,5 +32,16 @@ Then run.
./build/bin/presenter ./build/bin/presenter
#+END_SRC #+END_SRC
** Nix
If you are using nix to develop with, which I would try to suggest since that will make sure all the appropriate dependencies are installed, you'll need to do the following:
#+begin_src
cd church-presenter
nix develop
#+end_src
This drops you into a shell with all the right dependencies.
Then just as before build and run it the way you would.
* Contact Me * Contact Me
If, for whatever reason, you need to contact me and get something ironed out, please do so at [[mailto:chris@tfcconnection.org][chris@cochrun.xyz]] If, for whatever reason, you need to contact me and get something ironed out, please do so at [[mailto:chris@tfcconnection.org][chris@cochrun.xyz]]

View file

@ -1,4 +1,4 @@
{ pkgs ? <nixpkgs> { } }: { pkgs ? import <nixpkgs> { } }:
with pkgs; with pkgs;
mkShell { mkShell {
name = "presenter-env"; name = "presenter-env";
@ -29,6 +29,7 @@ mkShell {
# This is only here because apparently it doesn't pick up the icon theme from the base system # This is only here because apparently it doesn't pick up the icon theme from the base system
papirus-icon-theme papirus-icon-theme
# lightly-qt
mpv mpv
# libsForQt5.kconfig # libsForQt5.kconfig

View file

@ -29,17 +29,5 @@ Kirigami.OverlaySheet {
presentationScreen = screens[currentIndex]; presentationScreen = screens[currentIndex];
} }
} }
Controls.TextField {
id: descriptionField
Kirigami.FormData.label: i18nc("@label:textbox", "Description:")
placeholderText: i18n("Optional")
onAccepted: dateField.forceActiveFocus()
}
Controls.TextField {
id: dateField
Kirigami.FormData.label: i18nc("@label:textbox", "Date:")
placeholderText: i18n("YYYY-MM-DD")
inputMask: "0000-00-00"
}
} }
} }