Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
90f32d45
Commit
90f32d45
authored
Sep 10, 2022
by
Claudio Cambra
Browse files
Add flake.nix
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
f0cae7ed
Pipeline
#230142
passed with stage
in 4 minutes and 16 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
flake.nix
0 → 100644
View file @
90f32d45
# SPDX-FileCopyrightText: (C) 2022 Carl Schwan <carl@carlschwan.eu>
# SPDX-License-Identifier: BSD-2-Clause
{
description
=
"A flake for kalendar"
;
inputs
=
{
nixpkgs
.
url
=
"github:NixOS/nixpkgs/nixpkgs-unstable"
;
flake-utils
.
url
=
"github:numtide/flake-utils"
;
};
outputs
=
{
self
,
nixpkgs
,
flake-utils
}:
with
flake-utils
.
lib
;
eachSystem
[
"aarch64-linux"
"x86_64-linux"
]
(
system
:
let
pkgs
=
import
nixpkgs
{
inherit
system
;
};
nativeBuildInputs
=
with
pkgs
;
[
cmake
extra-cmake-modules
qt5
.
wrapQtAppsHook
];
buildInputs
=
with
pkgs
;
[
mariadb
gpgme
libsForQt5
.
qt5
.
qtbase
libsForQt5
.
qt5
.
qtquickcontrols2
libsForQt5
.
qt5
.
qtsvg
libsForQt5
.
qt5
.
qtlocation
libsForQt5
.
qt5
.
qtdeclarative
libsForQt5
.
breeze-icons
libsForQt5
.
qqc2-desktop-style
libsForQt5
.
kirigami2
libsForQt5
.
kdbusaddons
libsForQt5
.
ki18n
libsForQt5
.
kcalendarcore
libsForQt5
.
kconfigwidgets
libsForQt5
.
kwindowsystem
libsForQt5
.
kcoreaddons
libsForQt5
.
kcontacts
libsForQt5
.
kitemmodels
libsForQt5
.
kxmlgui
libsForQt5
.
knotifications
libsForQt5
.
kiconthemes
libsForQt5
.
kservice
libsForQt5
.
kmime
libsForQt5
.
kpackage
libsForQt5
.
eventviews
libsForQt5
.
calendarsupport
libsForQt5
.
messagelib
libsForQt5
.
mailcommon
libsForQt5
.
pimcommon
libsForQt5
.
akonadi
libsForQt5
.
akonadi-search
libsForQt5
.
akonadi-contacts
libsForQt5
.
akonadi-calendar
libsForQt5
.
kdepim-runtime
];
packages
=
{
kalendar
=
pkgs
.
stdenv
.
mkDerivation
rec
{
inherit
nativeBuildInputs
buildInputs
;
pname
=
"kalendar"
;
version
=
"dev"
;
src
=
./.
;
propagatedUserEnvPkgs
=
with
pkgs
;
[
libsForQt5
.
akonadi
libsForQt5
.
kdepim-runtime
];
};
};
apps
=
{
kalendar
=
mkApp
{
name
=
"Kalendar"
;
drv
=
packages
.
kalendar
;
};
};
in
{
inherit
packages
apps
;
defaultPackage
=
packages
.
kalendar
;
defaultApp
=
apps
.
kalendar
;
devShell
=
pkgs
.
mkShell
{
inherit
buildInputs
;
nativeBuildInputs
=
with
pkgs
;
nativeBuildInputs
++
[
clang-tools
libclang
.
python
];
name
=
"kalendar-shell"
;
shellHook
=
''
export AKONADI_INSTANCE=devel
''
;
};
}
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment