lumina/default.nix
Chris Cochrun 3ce236aefe making some tweaks to the default.nix
My NixOS config builds the app on every update. When we start to do
proper releases and such I'll fix this, but for now I want to change
up the default.nix so my config only builds a certain release.
2023-04-19 14:15:07 -05:00

119 lines
2 KiB
Nix

# { pkgs ? import <nixpkgs> { } }:
# with pkgs;
{
stdenv,
fetchFromGitLab,
lib,
gcc,
gnumake,
clang,
cmake,
extra-cmake-modules,
pkg-config,
wrapQtAppsHook,
makeWrapper,
qtbase,
clang-tools,
qttools,
qtquickcontrols2,
qtx11extras,
qtmultimedia,
qtwayland,
karchive,
kirigami2,
ki18n,
kcoreaddons,
# kwindowsystem,
mpv,
ffmpeg_6-full,
# Rust tools
rustPlatform,
# setuptools-rust,
rustc,
cargo,
corrosion
}:
stdenv.mkDerivation rec {
name = "libre-presenter";
pname = "libre-presenter";
version = "0.0.1";
__noChroot = true;
src = fetchFromGitLab {
owner = "chriscochrun";
repo = "church-presenter";
rev = "0.1";
sha256 = "sha256-tOQWUu+RTB4lG/RojYJUNQPuc/qr5HK/eeuaYAoNW6o=";
};
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
gcc
gnumake
clang
clang-tools
cmake
extra-cmake-modules
pkg-config
wrapQtAppsHook
makeWrapper
# gccStdenv
# stdenv
];
buildInputs = [
rustc
cargo
corrosion
qtbase
qttools
qtquickcontrols2
qtx11extras
qtmultimedia
qtwayland
kirigami2
karchive
ki18n
kcoreaddons
mpv
ffmpeg_6-full
# libsForQt5.kconfig
];
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
};
RUST_BACKTRACE = "Full";
# preConfigure = ''
# "${cargo-download}
# '';
# postConfigure = ''
# substituteInPlace cmake_install.cmake \
# --replace "${kdelibs4support}" "$out"
# '';
# buildPhase = ''
# cmake -B build/ -DCMAKE_BUILD_TYPE=Debug
# make -j8 --dir build/
# '';
installPhase = ''
mkdir -p $out/bin
cp -r bin/* $out/bin
rm -rf ~/.cache/librepresenter/Libre\ Presenter/qmlcache/
'';
meta = with lib; {
name = "Libre Presenter";
description = "A church presentation software made with QT/QML";
homepage = "";
license = licenses.gpl3;
maintainers = [ "chriscochrun" ];
platforms = platforms.all;
};
}