mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 18:46:19 +00:00
Jakub Sokołowski
42fb40476c
Changes: - Fixed `nix/status-go/desktop` builds - Dropped nimbus wrapper for `status-go` for now - Split `status-go` builds into subfolders: `mobile`, `desktop` - Fixed shells for desktop builds: `linux`,`macos`,`windows` - Added `make status-go-*` targets for building them - Moved source management to `nix/status-go/source.nix` - Moved `nix/status-go/build.nix` into `nix/status-go/mobile` - Moved `nix/desktop/cmake/qtkeychain` to `nix/pkgs/qtkeychain-src` - Moved `nix/desktop/linux/linuxdeployqt` to `nix/pkgs` - Moved `nix/desktop/linux/appimagekit` to `nix/pkgs` - Dropped `nix/tools/mkShell.nix` since it did almost nothing - Dropped `nix/desktop/cmake/snorenotify` since it's broken - Moved setup from `nix/tools/mkShell.nix` to `nix/shells.nix` - Simplified `nix/mobile/ios/status-go-shell.nix` - Simplified `nix/status-go/default.nix` - Updated the `nix/DETAILS.md` and `nix/README.md` - Moved known issues to `nix/KNOWN_ISSUES.md` - Improved output of `nix/scripts/build.sh` Signed-off-by: Jakub Sokołowski <jakub@status.im>
41 lines
1.5 KiB
Nix
41 lines
1.5 KiB
Nix
{ pkgs, stdenv, fetchFromGitHub }:
|
|
|
|
let
|
|
version = "0.8.90";
|
|
# This revision will get used in:
|
|
# https://github.com/status-im/react-native-keychain/blob/master/desktop/CMakeLists.txt#L45
|
|
rev = "d3c606c55adf8c2c2747556055652b3469f6c4c2";
|
|
sha256 = "1gqw3g0j46aswncm8fgy419lp1fp2y2nild82hs18xra5albvf3i";
|
|
|
|
in stdenv.mkDerivation {
|
|
name = "qtkeychain-patched-source";
|
|
version = "${version}-${stdenv.lib.strings.substring 0 7 rev}";
|
|
|
|
src = fetchFromGitHub {
|
|
inherit rev sha256;
|
|
owner = "status-im";
|
|
repo = "qtkeychain";
|
|
name = "qtkeychain-source-${version}";
|
|
};
|
|
|
|
phases = [ "unpackPhase" ];
|
|
unpackPhase = ''
|
|
mkdir -p $out/src
|
|
cp -r $src/* $out/src/
|
|
substituteInPlace $out/src/CMakeLists.txt \
|
|
--replace "cmake_minimum_required(VERSION 2.8.11)" "cmake_minimum_required(VERSION 3.12.1)" \
|
|
--replace "project(qtkeychain)" "project(qtkeychain VERSION ${version})" \
|
|
--replace "set(QTKEYCHAIN_VERSION 0.8.90)" "set(QTKEYCHAIN_VERSION ${version})" \
|
|
--replace "{QTKEYCHAIN_VERSION}\" VARIABLE_PREFIX SNORE" "QTKEYCHAIN_VERSION VARIABLE_PREFIX SNORE" \
|
|
--replace "\"\$QTKEYCHAIN_VERSION" qtkeychain
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Patched sources for qtkeychain, a platform-independent Qt API for storing passwords securely";
|
|
homepage = https://github.com/status-im/qtkeychain;
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.pombeirp ];
|
|
platforms = with platforms; darwin ++ linux;
|
|
};
|
|
}
|