test
This commit is contained in:
parent
2ff59535dd
commit
51e5082838
|
@ -24,6 +24,8 @@ in
|
||||||
# matrix-presents = pkgs.callPackage ./pkgs/matrix-presents { };
|
# matrix-presents = pkgs.callPackage ./pkgs/matrix-presents { };
|
||||||
matrix-wug = pkgs.callPackage ./pkgs/matrix-wug { };
|
matrix-wug = pkgs.callPackage ./pkgs/matrix-wug { };
|
||||||
|
|
||||||
|
matrix-appservice-minecraft = pkgs.callPackage ./pkgs/matrix-appservice-minecraft { };
|
||||||
|
|
||||||
rust-synapse-compress-state = pkgs.callPackage ./pkgs/rust-synapse-compress-state { };
|
rust-synapse-compress-state = pkgs.callPackage ./pkgs/rust-synapse-compress-state { };
|
||||||
matrix-corporal = pkgs.callPackage ./pkgs/matrix-corporal { };
|
matrix-corporal = pkgs.callPackage ./pkgs/matrix-corporal { };
|
||||||
|
|
||||||
|
@ -41,9 +43,10 @@ in
|
||||||
|
|
||||||
plotbitrate = pkgs.callPackage ./pkgs/plotbitrate { };
|
plotbitrate = pkgs.callPackage ./pkgs/plotbitrate { };
|
||||||
|
|
||||||
mesloNFp10k = pkgs.callPackage ./pkgs/fonts/MesloNFp10k.nix { };
|
wii-u-gc-adapter = pkgs.callPackage ./pkgs/wii-u-gc-adapter { };
|
||||||
|
|
||||||
minecraft-server-fabric = pkgs.callPackage ./pkgs/minecraft-server-fabric { };
|
minecraft-server-fabric = pkgs.callPackage ./pkgs/minecraft-server-fabric { };
|
||||||
|
|
||||||
|
mesloNFp10k = pkgs.callPackage ./pkgs/fonts/MesloNFp10k.nix { };
|
||||||
wallpapers = pkgs.callPackage ./pkgs/wallpapers/monogatari { };
|
wallpapers = pkgs.callPackage ./pkgs/wallpapers/monogatari { };
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
{ pkgs, mkYarnPackage, fetchFromGitHub, nodejs-12_x, nodePackages, python3, pkgconfig, vips }:
|
||||||
|
let
|
||||||
|
nodejs = nodejs-12_x;
|
||||||
|
nodeHeaders = pkgs.fetchurl {
|
||||||
|
url = "https://nodejs.org/download/release/v${nodejs.version}/node-v${nodejs.version}-headers.tar.gz";
|
||||||
|
sha256 = "12415ss4fxxafp3w8rxp2jbb16y0d7f01b7wv72nmy3cwiqxqkhn";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
mkYarnPackage {
|
||||||
|
pname = "matrix-appservice-minecraft-dev-";
|
||||||
|
version = "2.4.4";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "dylhack";
|
||||||
|
repo = "matrix-appservice-minecraft";
|
||||||
|
rev = "03aaa8c9eb05f55328dfa44af17e115d7bf3de97";
|
||||||
|
sha256 = "1l9xlv301kmn37ycs2gp1kvjpyvymx8k86c1r7gbvpbg8832j009";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
yarn run build
|
||||||
|
'';
|
||||||
|
|
||||||
|
preInstall = ''
|
||||||
|
sed -i '1i#!${nodejs}/bin/node' deps/matrix-appservice-minecraft/dist/src/app.js
|
||||||
|
chmod -R +x deps/matrix-appservice-minecraft/dist
|
||||||
|
mkdir -p $out
|
||||||
|
ls deps/matrix-appservice-minecraft
|
||||||
|
find . -name '*better_sqlite3.node*'
|
||||||
|
#cp -r node_modules deps/matrix-appservice-minecraft/dist/src/node_modules
|
||||||
|
#cp -r deps/matrix-appservice-minecraft/dist/src $out/src
|
||||||
|
'';
|
||||||
|
|
||||||
|
pkgConfig.better_sqlite3 = {
|
||||||
|
buildInputs = [ nodePackages.node-gyp python3 pkgconfig vips ];
|
||||||
|
postInstall = ''
|
||||||
|
node-gyp --nodedir=${nodeHeaders} rebuild
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
#postInstall = ''
|
||||||
|
# node scripts/build.js --tarball=${nodeHeaders}
|
||||||
|
#'';
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
{stdenv, fetchFromGitHub, pkg-config, libusb1, libudev}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "wii-u-gc-adapter";
|
||||||
|
version = "unstable-2020-07-22";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ToadKing";
|
||||||
|
repo = "wii-u-gc-adapter";
|
||||||
|
rev = "63655a2611a50f653b66415e44f43a5313eb2921";
|
||||||
|
sha256 = "03lwsxjfn4pjw6dyh4gzk5yx4dmgr46xmalx92qvq8allghvvy6s";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
buildInputs = [ libusb1 libudev ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://github.com/ToadKing/wii-u-gc-adapter";
|
||||||
|
description = "Tool for using the Wii U GameCube Adapter on Linux";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue