Update nheko

This commit is contained in:
Alexander Bantyev 2021-09-13 20:03:07 +03:00
parent a87553f8b1
commit 99fd402695
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
3 changed files with 51 additions and 7 deletions

View File

@ -32,6 +32,22 @@
"type": "github" "type": "github"
} }
}, },
"coeurl": {
"flake": false,
"locked": {
"lastModified": 1628872501,
"narHash": "sha256-bslkrBjAsf2co4lt9efEQ3R6YNR2+minZAKkcZKjykI=",
"ref": "master",
"rev": "22f58922da16c3b94d293d98a07cb7caa7a019e8",
"revCount": 51,
"type": "git",
"url": "https://nheko.im/nheko-reborn/coeurl"
},
"original": {
"type": "git",
"url": "https://nheko.im/nheko-reborn/coeurl"
}
},
"crate2nix": { "crate2nix": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -335,11 +351,11 @@
"mtxclient": { "mtxclient": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1624110239, "lastModified": 1630632658,
"narHash": "sha256-JlTGwFZKQ0sJpOPtMPKY9wm11yDrdyNw9OKr7E4yBOQ=", "narHash": "sha256-onpaWKkTgwQkIZrou7VmhlLRq5dIu1yZ8R/pc00KCkc=",
"owner": "nheko-reborn", "owner": "nheko-reborn",
"repo": "mtxclient", "repo": "mtxclient",
"rev": "acfff15ca153723e41cf7ef06ff82b1c24c933ef", "rev": "a4f4c79153cc139c44aaf7bd5bf47fef6c0712b3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -351,11 +367,11 @@
"nheko": { "nheko": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1624613955, "lastModified": 1631536282,
"narHash": "sha256-/k/081pI0S8YHxbct1yhNqJQW4EKfu9/KsjLZ2CoQDU=", "narHash": "sha256-kavv/Aw38skTuL6AlhgE5pdDm/8RWl3I+sheTJFQD3A=",
"owner": "nheko-reborn", "owner": "nheko-reborn",
"repo": "nheko", "repo": "nheko",
"rev": "36f0e044398535143f24bbf2850df9e5b2947770", "rev": "1b82b8242b1290b3ce39f932597e8cd3854b5e82",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -606,6 +622,7 @@
"inputs": { "inputs": {
"NUR": "NUR", "NUR": "NUR",
"base16-black-metal-scheme": "base16-black-metal-scheme", "base16-black-metal-scheme": "base16-black-metal-scheme",
"coeurl": "coeurl",
"crdt": "crdt", "crdt": "crdt",
"deploy-rs": "deploy-rs", "deploy-rs": "deploy-rs",
"emacs-overlay": "emacs-overlay", "emacs-overlay": "emacs-overlay",

View File

@ -73,6 +73,11 @@
flake = false; flake = false;
}; };
coeurl = {
url = "git+https://nheko.im/nheko-reborn/coeurl";
flake = false;
};
mopidy-ytmusic = { mopidy-ytmusic = {
url = "github:OzymandiasTheGreat/mopidy-ytmusic"; url = "github:OzymandiasTheGreat/mopidy-ytmusic";
flake = false; flake = false;

View File

@ -140,12 +140,34 @@ in {
nix-direnv = inputs.nix-direnv.defaultPackage.${system}; nix-direnv = inputs.nix-direnv.defaultPackage.${system};
mtxclient = super.mtxclient.overrideAttrs (_: { coeurl = self.stdenv.mkDerivation {
name = "coeurl";
src = inputs.coeurl;
buildInputs = [ self.curl.all self.libevent self.spdlog ];
nativeBuildInputs = [ self.meson self.ninja self.pkg-config self.cmake ];
};
mtxclient = super.mtxclient.overrideAttrs (oa: {
src = inputs.mtxclient; src = inputs.mtxclient;
cmakeFlags = oa.cmakeFlags ++ [ "-DCMAKE_CXX_FLAGS=-DSPDLOG_FMT_EXTERNAL" ];
buildInputs = oa.buildInputs ++ [ self.libevent self.curl.all self.coeurl self.spdlog.dev ];
}); });
nheko = (super.nheko.overrideAttrs (oa: { nheko = (super.nheko.overrideAttrs (oa: {
src = inputs.nheko; src = inputs.nheko;
postPatch = ''
substituteInPlace CMakeLists.txt --replace "# Fixup bundled keychain include dirs" "find_package(Boost COMPONENTS iostreams system thread REQUIRED)"
'';
buildInputs = oa.buildInputs ++ [
self.xorg.libXdmcp
self.pcre
self.libunwind
self.elfutils
self.coeurl
self.curl
self.libevent
];
cmakeFlags = oa.cmakeFlags ++ [ "-DBUILD_SHARED_LIBS=OFF" ];
})).override { mtxclient = self.mtxclient; }; })).override { mtxclient = self.mtxclient; };
}) })
]; ];