mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Add a nix Flake
This commit is contained in:
parent
4bddf1e60b
commit
e38a318c4d
41
flake.lock
Normal file
41
flake.lock
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"locked": {
|
||||
"lastModified": 1659877975,
|
||||
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1663175074,
|
||||
"narHash": "sha256-pmujinSiECRsgOWpGlKtTwPEtCv8Y7OYYHgfg/tYdJw=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "ee55809e3162f9157a7579b59d4b9caf6e931686",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
51
flake.nix
Normal file
51
flake.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{
|
||||
description = "Flake for KeePassXC development";
|
||||
|
||||
inputs = {
|
||||
flake-utils = {
|
||||
url = "github:numtide/flake-utils";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
}: (
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system: (
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs;
|
||||
[
|
||||
gnumake
|
||||
cmake
|
||||
gcc8
|
||||
curl
|
||||
botan2
|
||||
xorg.libXtst
|
||||
xorg.libXi
|
||||
libargon2
|
||||
minizip
|
||||
pcsclite
|
||||
qrencode
|
||||
asciidoctor
|
||||
libsForQt5.qt5.qtbase
|
||||
libsForQt5.qt5.qttools
|
||||
libsForQt5.qt5.qttranslations
|
||||
libsForQt5.qt5.qtsvg
|
||||
libsForQt5.qt5.qtx11extras
|
||||
libsForQt5.qt5.qtwayland
|
||||
readline
|
||||
zlib
|
||||
]
|
||||
++ lib.optional stdenv.isLinux pkgs.libusb1
|
||||
++ lib.optional stdenv.isDarwin pkgs.libsForQt5.qt5.qtmacextras;
|
||||
};
|
||||
}
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
31
shell.nix
31
shell.nix
@ -1,31 +0,0 @@
|
||||
{
|
||||
withKeePassBrowser ? true,
|
||||
withKeePassKeeShare ? true,
|
||||
withKeePassSSHAgent ? true,
|
||||
withKeePassNetworking ? true,
|
||||
withKeePassTouchID ? true,
|
||||
withKeePassYubiKey ? true,
|
||||
withKeePassFDOSecrets ? true,
|
||||
}:
|
||||
|
||||
with (import <nixpkgs> {});
|
||||
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
curl
|
||||
botan2
|
||||
xorg.libXtst
|
||||
xorg.libXi
|
||||
libargon2
|
||||
minizip
|
||||
pcsclite
|
||||
qrencode
|
||||
libsForQt5.qt5.qtbase
|
||||
libsForQt5.qt5.qtsvg
|
||||
libsForQt5.qt5.qtx11extras
|
||||
readline
|
||||
zlib
|
||||
]
|
||||
++ lib.optional stdenv.isLinux libusb1
|
||||
++ lib.optional stdenv.isDarwin libsForQt5.qt5.qtmacextras;
|
||||
}
|
Loading…
Reference in New Issue
Block a user