blob: 587b39d045be71596b8bb094c2f653f0b6d066e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ inputs }:
self: super: {
retroshare_my =
with super;
(
(retroshare.override {
sqlcipher = null;
}).overrideAttrs
(oldAttrs: rec {
# version = "2023-03-10";
version = "git";
src = fetchGit {
# url = "https://github.com/RetroShare/RetroShare";
url = "/home/sss/git/retroshare/RetroShare";
ref = "fucked_submodules";
# rev = "e60fead024158d5d746c090bad2abb2e4053a370";
# sha256 = lib.fakeSha256;
submodules = true;
};
#buildInputs = oldAttrs.buildInputs ++ [ libressl ];
NIX_CFLAGS_COMPILE = "-fpermissive";
NIX_CXXFLAGS_COMPILE = "-fpermissive";
qmakeFlags = [
"RS_UPNP_LIB=miniupnpc"
"RS_MAJOR_VERSION=0"
"RS_MINOR_VERSION=6"
"RS_MINI_VERSION=x"
"RS_EXTRA_VERSION="
"CONFIG+=no_sqlcipher"
"CONFIG+=no_retroshare_plugins"
];
patches = [ ];
# patches = [ "/home/sss/git/nix/nixpkgs-patches/retroshare-submodules-fix.patch" ];
postPatch = ''
sed 's/''${AR}/ar/g' -i supportlibs/libsam3/Makefile
'';
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ git ];
})
);
}
|