nitrokey-app: use system libnitrokey and cppcodec
Do not use the git submodule in nitrokey-app.
This commit is contained in:
parent
5ad0e53916
commit
2645079477
@ -1,5 +1,13 @@
|
||||
{ lib, stdenv, bash-completion, cmake, fetchFromGitHub, hidapi, libusb1, pkg-config
|
||||
, qtbase, qttranslations, qtsvg, wrapQtAppsHook }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, cmake
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, qttranslations
|
||||
, wrapQtAppsHook
|
||||
, libnitrokey
|
||||
, cppcodec
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nitrokey-app";
|
||||
@ -9,24 +17,25 @@ stdenv.mkDerivation rec {
|
||||
owner = "Nitrokey";
|
||||
repo = "nitrokey-app";
|
||||
rev = "v${version}";
|
||||
sha256 = "1k0w921hfrya4q2r7bqn7kgmwvwb7c15k9ymlbnksmfc9yyjyfcv";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-c6EC5uuMna07xVHDRFq0UDwuSeopZTmZGZ9ZD5zaq8Y=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
bash-completion
|
||||
hidapi
|
||||
libusb1
|
||||
qtbase
|
||||
qttranslations
|
||||
qtsvg
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
wrapQtAppsHook
|
||||
qttranslations
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DADD_GIT_INFO=OFF"
|
||||
"-DBASH_COMPLETION_PATH=share/bash-completion/completions"
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libnitrokey
|
||||
cppcodec
|
||||
];
|
||||
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Provides extra functionality for the Nitrokey Pro and Storage";
|
||||
|
Loading…
Reference in New Issue
Block a user