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
65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
coreutils,
|
|
curl,
|
|
gawk,
|
|
gnugrep,
|
|
gnused,
|
|
gzip,
|
|
sysctl,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "couchdb-dump";
|
|
version = "0-unstable-2021-07-24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "danielebailo";
|
|
repo = "couchdb-dump";
|
|
rev = "f59fa242d34e505cb22ecb2ad1ffba0f6402978c";
|
|
hash = "sha256-fBvbt/1ukpvcu8Aa/uAmVzw0ms8Sp35WLJPvHs9E9Bc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
patches = [ ./gsed.patch ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D couchdb-dump.sh $out/bin/couchdb-dump
|
|
|
|
substituteInPlace $out/bin/couchdb-dump \
|
|
--subst-var-by sed_cmd ${lib.getExe gnused}
|
|
|
|
wrapProgram $out/bin/couchdb-dump --prefix PATH : ${
|
|
lib.makeBinPath (
|
|
[
|
|
coreutils
|
|
curl
|
|
gawk
|
|
gnugrep
|
|
gnused
|
|
gzip
|
|
]
|
|
++ lib.optionals (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isFreeBSD) [
|
|
sysctl
|
|
]
|
|
)
|
|
}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
inherit (finalAttrs.src.meta) homepage;
|
|
|
|
description = "Bash command line scripts to dump & restore a couchdb database";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ DamienCassou ];
|
|
mainProgram = "couchdb-dump";
|
|
};
|
|
})
|