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,19 @@
{ callPackage, fetchurl }:
callPackage ./dvtm.nix rec {
pname = "dvtm";
version = "0.15";
src = fetchurl {
url = "https://www.brain-dump.org/projects/dvtm/dvtm-${version}.tar.gz";
sha256 = "0475w514b7i3gxk6khy8pfj2gx9l7lv2pwacmq92zn1abv01a84g";
};
patches = [
# https://github.com/martanne/dvtm/pull/69
# Use self-pipe instead of signal blocking fixes issues on darwin.
(fetchurl {
url = "https://github.com/martanne/dvtm/commit/1f1ed664d64603f3f1ce1388571227dc723901b2.patch";
sha256 = "1cby8x3ckvhzqa8yxlfrwzgm8wk7yz84kr9psdjr7xwpnca1cqrd";
})
];
}

View File

@@ -0,0 +1,43 @@
{
lib,
stdenv,
ncurses,
customConfig ? null,
pname,
version,
src,
patches ? [ ],
}:
stdenv.mkDerivation {
inherit
pname
version
src
patches
;
CFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-D_DARWIN_C_SOURCE";
postPatch = lib.optionalString (customConfig != null) ''
cp ${builtins.toFile "config.h" customConfig} ./config.h
'';
nativeBuildInputs = [ ncurses ];
buildInputs = [ ncurses ];
prePatch = ''
substituteInPlace Makefile \
--replace /usr/share/terminfo $out/share/terminfo
'';
makeFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
description = "Dynamic virtual terminal manager";
homepage = "http://www.brain-dump.org/projects/dvtm";
license = licenses.mit;
maintainers = [ ];
platforms = platforms.unix;
};
}

View File

@@ -0,0 +1,31 @@
{
callPackage,
fetchpatch,
fetchzip,
}:
let
rev = "7bcf43f8dbd5c4a67ec573a1248114caa75fa3c2";
in
callPackage ./dvtm.nix {
pname = "dvtm-unstable";
version = "unstable-2021-03-09";
src = fetchzip {
urls = [
"https://github.com/martanne/dvtm/archive/${rev}.tar.gz"
"https://git.sr.ht/~martanne/dvtm/archive/${rev}.tar.gz"
];
hash = "sha256-UtkNsW0mvLfbPSAIIZ1yvX9xzIDtiBeXCjhN2R8JhDc=";
};
patches = [
# https://github.com/martanne/dvtm/pull/69
# Use self-pipe instead of signal blocking fixes issues on darwin.
(fetchpatch {
name = "use-self-pipe-fix-darwin";
url = "https://github.com/martanne/dvtm/commit/1f1ed664d64603f3f1ce1388571227dc723901b2.patch";
sha256 = "14j3kks7b1v6qq12442v1da3h7khp02rp0vi0qrz0rfgkg1zilpb";
})
];
}