push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
{
stdenv,
lib,
fetchurl,
fetchFromGitHub,
}:
let
version = "0.75";
sha256 = "1iajg55n47hqxcpdzmyq4g4aprx7bzxcp885i850h355k5vmf68r";
# Please dont forget to update the docs:
# clone https://github.com/Profpatsch/cdb-docs
# and create a pull request with the result of running
# ./update <version>
# from the repositorys root folder.
docRepo = fetchFromGitHub {
owner = "Profpatsch";
repo = "cdb-docs";
rev = "359b6c55c9e170ebfc88f3f38face8ae2315eacb";
sha256 = "1y0ivviy58i0pmavhvrpznc4yjigjknff298gnw9rkg5wxm0gbbq";
};
in
stdenv.mkDerivation {
pname = "cdb";
inherit version;
src = fetchurl {
url = "https://cr.yp.to/cdb/cdb-${version}.tar.gz";
inherit sha256;
};
outputs = [
"bin"
"doc"
"out"
];
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error=implicit-int"
"-Wno-error=implicit-function-declaration"
];
postPatch = ''
# A little patch, borrowed from Archlinux AUR, borrowed from Gentoo Portage
sed -e 's/^extern int errno;$/#include <errno.h>/' -i error.h
'';
postInstall = ''
# don't use make setup, but move the binaries ourselves
mkdir -p $bin/bin
install -m 755 -t $bin/bin/ cdbdump cdbget cdbmake cdbmake-12 cdbmake-sv cdbstats cdbtest
# patch paths in scripts
function cdbmake-subst {
substituteInPlace $bin/bin/$1 \
--replace /usr/local/bin/cdbmake $bin/bin/cdbmake
}
cdbmake-subst cdbmake-12
cdbmake-subst cdbmake-sv
# docs
mkdir -p $doc/share/cdb
cp -r "${docRepo}/docs" $doc/share/cdb/html
'';
meta = {
homepage = "https://cr.yp.to/cdb.html";
license = lib.licenses.publicDomain;
maintainers = [ lib.maintainers.Profpatsch ];
platforms = lib.platforms.unix;
};
}

View File

@@ -0,0 +1,63 @@
{
stdenv,
fetchFromGitHub,
lib,
rustPlatform,
rustfmt,
protobuf,
}:
let
src = fetchFromGitHub {
owner = "indradb";
repo = "indradb";
rev = "06134dde5bb53eb1d2aaa52afdaf9ff3bf1aa674";
sha256 = "sha256-g4Jam7yxMc+piYQzgMvVsNTF+ce1U3thzYl/M9rKG4o=";
};
meta = with lib; {
description = "Graph database written in rust";
homepage = "https://github.com/indradb/indradb";
license = licenses.mpl20;
maintainers = with maintainers; [ happysalada ];
platforms = platforms.unix;
};
in
{
indradb-server = rustPlatform.buildRustPackage {
pname = "indradb-server";
version = "unstable-2021-01-05";
inherit src meta;
cargoHash = "sha256-wehQU0EOSkxQatoViqBJwgu4LG7NsbKjVZvKE6SoOFs=";
buildAndTestSubdir = "server";
PROTOC = "${protobuf}/bin/protoc";
nativeBuildInputs = [
rustfmt
rustPlatform.bindgenHook
];
# test rely on libindradb and it can't be found
# failure at https://github.com/indradb/indradb/blob/master/server/tests/plugins.rs#L63
# `let _server = Server::start(&format!("../target/debug/libindradb_plugin_*.{}", LIBRARY_EXTENSION)).unwrap();`
doCheck = false;
};
indradb-client = rustPlatform.buildRustPackage {
pname = "indradb-client";
version = "unstable-2021-01-05";
inherit src meta;
cargoHash = "sha256-wehQU0EOSkxQatoViqBJwgu4LG7NsbKjVZvKE6SoOFs=";
PROTOC = "${protobuf}/bin/protoc";
nativeBuildInputs = [
rustfmt
rustPlatform.bindgenHook
];
buildAndTestSubdir = "client";
};
}

View File

@@ -0,0 +1,87 @@
# To enable specific database drivers, override this derivation and pass the
# driver packages in the drivers argument (e.g. mysql_jdbc, postgresql_jdbc).
{
lib,
stdenv,
fetchurl,
makeDesktopItem,
makeWrapper,
unzip,
jre,
drivers ? [ ],
}:
stdenv.mkDerivation rec {
pname = "squirrel-sql";
version = "5.0.0";
src = fetchurl {
url = "mirror://sourceforge/project/squirrel-sql/1-stable/${version}-plainzip/squirrelsql-${version}-standard.zip";
sha256 = "sha256-HZYlW+HthutFP3xNUU2Wrd/Yet8oBF190gg52Wauqng=";
};
nativeBuildInputs = [
makeWrapper
unzip
];
buildInputs = [ jre ];
unpackPhase = ''
runHook preUnpack
unzip ${src}
runHook postUnpack
'';
buildPhase = ''
runHook preBuild
cd squirrelsql-${version}-standard
chmod +x squirrel-sql.sh
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/squirrel-sql
cp -r . $out/share/squirrel-sql
mkdir -p $out/bin
cp=""
for pkg in ${builtins.concatStringsSep " " drivers}; do
if test -n "$cp"; then
cp="$cp:"
fi
cp="$cp"$(echo $pkg/share/java/*.jar | tr ' ' :)
done
makeWrapper $out/share/squirrel-sql/squirrel-sql.sh $out/bin/squirrel-sql \
--set CLASSPATH "$cp" \
--set JAVA_HOME "${jre}"
# Make sure above `CLASSPATH` gets picked up
substituteInPlace $out/share/squirrel-sql/squirrel-sql.sh --replace "-cp \"\$CP\"" "-cp \"\$CLASSPATH:\$CP\""
mkdir -p $out/share/icons/hicolor/32x32/apps
ln -s $out/share/squirrel-sql/icons/acorn.png \
$out/share/icons/hicolor/32x32/apps/squirrel-sql.png
ln -s ${desktopItem}/share/applications $out/share
runHook postInstall
'';
desktopItem = makeDesktopItem {
name = "squirrel-sql";
exec = "squirrel-sql";
comment = meta.description;
desktopName = "SQuirreL SQL";
genericName = "SQL Client";
categories = [ "Development" ];
icon = "squirrel-sql";
};
meta = with lib; {
description = "Universal SQL Client";
mainProgram = "squirrel-sql";
homepage = "http://squirrel-sql.sourceforge.net/";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.lgpl21Plus;
platforms = platforms.linux;
};
}