Commit 569c6031 authored by erdnaxe's avatar erdnaxe 🦋
Browse files

Cleanup custom pkgs

parent de9ecacc
with import <nixpkgs> { };
stdenv.mkDerivation rec {
pname = "ananicy-cpp";
version = "0.7.1";
src = fetchFromGitLab {
owner = "ananicy-cpp";
repo = "ananicy-cpp";
rev = "v${version}";
sha256 = "1ccqjhy8fdwrpyniw4a88yjh2cxa6fjycv40xg6fq8rlg31kmv6m";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ nlohmann_json fmt spdlog systemd ];
cmakeFlags = [
"-DVERSION=${version}"
"-DUSE_EXTERNAL_JSON=ON"
"-DUSE_EXTERNAL_FMTLIB=ON"
"-DUSE_EXTERNAL_SPDLOG=ON"
];
meta = with lib; {
description = "Another auto nice daemon rewritten in C++";
homepage = "https://gitlab.com/ananicy-cpp/ananicy-cpp";
maintainers = with maintainers; [ ];
license = licenses.gpl3;
platforms = [ "x86_64-linux" ];
};
}
#{ lib
#, stdenv
#, buildGoPackage
#, fetchFromGitHub
#}:
with import <nixpkgs> { };
buildGoModule rec {
......
with import <nixpkgs> {};
stdenv.mkDerivation {
pname = "fabric-server";
version = "1.18.1";
src = fetchurl {
url = "https://meta.fabricmc.net/v2/versions/loader/1.18.1/0.12.12/0.10.2/server/jar";
sha256 = "0z9sa444l77sxxxnqp9qskcjkp3wcsgnk4n60hnvp2jxsbk3s1mg";
};
preferLocalBuild = true;
installPhase = ''
mkdir -p $out/bin $out/lib/minecraft
cp -v $src $out/lib/minecraft/server.jar
cat > $out/bin/minecraft-server << EOF
#!/bin/sh
exec ${jre_headless}/bin/java \$@ -jar $out/lib/minecraft/server.jar nogui
EOF
chmod +x $out/bin/minecraft-server
'';
dontUnpack = true;
}
with import <nixpkgs> { };
buildBazelPackage rec {
pname = "lzr";
version = "unstable-2020-12-27";
src = fetchFromGitHub {
owner = "brendan-w";
repo = pname;
rev = "e19b5b3b82bb0eab9e80e081b650413a476f9cde";
sha256 = "1vxcya1x0iwlpn28vg1bcbg4ffq9jyjsm4fb9r1qc3v67mkhjcp4";
};
#strictDeps = true;
nativeBuildInputs = [ git ];
bazelTarget = [ "//..." ];
bazelFlags = [ "--override_repository=com_google_absl=${abseil-cpp.src}" ];
patchPhase = ''
sed -i 's=/usr/include/SDL2=${SDL2.dev}/include/SDL2=g' WORKSPACE
'';
fetchAttrs = {
sha256 = "0dass65w5vf65w54i9nvxpdwlfz1p245m737ybvsmfdjpqxvj2zd";
};
buildAttrs = { };
#installPhase = ''
# echo TESTTEST
# ls -la $bazelOut
# echo TEST
# ls -la
#'';
meta = with lib; {
description = "Laser show projection software, and ILDA handling library";
homepage = "https://gitlab.com/brendan-w/lzr";
maintainers = with maintainers; [ ];
license = with licenses; [ lgpl3Only ];
platforms = [ "x86_64-linux" ];
};
}
with import <nixpkgs> { };
stdenv.mkDerivation rec {
pname = "openlase";
version = "unstable-2020-09-01";
src = fetchFromGitHub {
owner = "marcan";
repo = "openlase";
rev = "e6c80165479a1fa85774673257e938f4066c939e";
sha256 = "1p5jsn609y5aczs226hcgwy89i992zrpwiagdxv73s0fpnmcdl09";
};
strictDeps = true;
nativeBuildInputs = [ cmake python3 yasm python3Packages.cython libsForQt5.qt5.wrapQtAppsHook ];
buildInputs = [ jack2 ffmpeg alsaLib freeglut ncurses libsForQt5.qt5.qtbase libGLU ];
postInstall = ''
mkdir -p $out/bin
cp output/output $out/bin/
cp tools/cal $out/bin/
cp tools/invert $out/bin/
cp tools/playilda $out/bin/
cp tools/simulator $out/bin/
cp tools/qplayvid/qplayvid $out/bin/
cp examples/circlescope $out/bin/
cp examples/harp $out/bin/
cp examples/multihead $out/bin/
cp examples/scope $out/bin/
cp examples/midiview $out/bin/
cp examples/pong $out/bin/
cp examples/simple $out/bin/
'';
meta = with lib; {
description = "Open source realtime laser graphics framework";
homepage = "https://gitlab.com/marcan/openlase";
maintainers = with maintainers; [ ];
license = with licenses; [ gpl2Only gpl3Only ];
platforms = [ "x86_64-linux" ];
};
}
with import <nixpkgs> {};
stdenv.mkDerivation {
pname = "riscv-gnu-toolchain";
version = "2021.12.22-nightly";
src = fetchFromGitHub {
owner = "riscv";
repo = "riscv-gnu-toolchain";
rev = "2021.12.22";
sha256 = "0j2xl1r85hl8xnlmswch2qhjml4znrx01p86jyiw7ah1wgbkgvf9";
fetchSubmodules = true;
};
strictDeps = true;
nativeBuildInputs = [ curl file texinfo bison flex ];
buildInputs = [ mpfr libmpc gmp zlib expat ];
hardeningDisable = [ "format" ];
configureFlags = [
"--disable-linux"
"--with-cmodel=medany"
"--with-arch=rv32ima"
];
buildFlags = [ "newlib" ];
# Make will try to init submodules if .git is not present
preBuildPhases = ["preBuildPhase"];
preBuildPhase = ''
touch riscv-binutils/.git riscv-gcc/.git riscv-glibc/.git riscv-dejagnu/.git riscv-newlib/.git riscv-gdb/.git qemu/.git
'';
meta = with lib; {
homepage = "https://github.com/riscv-collab/riscv-gnu-toolchain";
description = "GNU toolchain for RISC-V, including GCC";
platforms = platforms.unix;
license = with licenses; [ mit gpl2Only lgpl2Only ];
maintainers = with maintainers; [ erdnaxe ];
};
}
with import <nixpkgs> {};
stdenv.mkDerivation rec {
pname = "riscv-openocd";
version = "2019-12-06-unstable";
src = fetchFromGitHub {
owner = "riscv";
repo = "riscv-openocd";
rev = "aec5cca15b41d778fb85e95b38a9a552438fec6a";
sha256 = "1msz895w3xwv9r20hi3qhpb5xcprfyjx0y24gv9icm003y5dchjm";
fetchSubmodules = true;
};
nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = [ hidapi libftdi1 libusb1 jimtcl ];
configureFlags = [
"--enable-ftdi"
"--disable-internal-jimtcl"
];
# TODO: be more specific
NIX_CFLAGS_COMPILE = [
"-Wno-error"
#"-Wno-error=cpp"
#"-Wno-error=strict-prototypes" # fixes build failure with hidapi 0.10.0
];
postInstall = lib.optionalString stdenv.isLinux ''
mkdir -p "$out/etc/udev/rules.d"
rules="$out/share/openocd/contrib/60-openocd.rules"
if [ ! -f "$rules" ]; then
echo "$rules is missing, must update the Nix file."
exit 1
fi
ln -s "$rules" "$out/etc/udev/rules.d/"
'';
meta = with lib; {
homepage = "https://github.com/riscv/riscv-openocd";
description = "Fork of OpenOCD that has RISC-V support";
platforms = platforms.unix;
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [ erdnaxe ];
};
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment