dte: init at 1.11.1 (#431127)

This commit is contained in:
Yohann Boniface
2025-08-17 02:00:13 +02:00
committed by GitHub
+44
View File
@@ -0,0 +1,44 @@
{
lib,
stdenv,
fetchFromGitLab,
nix-update-script,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dte";
version = "1.11.1";
src = fetchFromGitLab {
owner = "craigbarnes";
repo = "dte";
tag = "v${finalAttrs.version}";
hash = "sha256-PG9yfRzJKXVKAg8ubIvX2Rj4nLO3dki7shP+zAa7nxo=";
};
installFlags = [ "DESTDIR=${placeholder "out"}" ];
postInstall = ''
mv $out/usr/local/* $out
rm -rf $out/usr
'';
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "dte -V";
};
};
meta = {
description = "Small, configurable terminal text editor";
homepage = "https://gitlab.com/craigbarnes/dte";
changelog = "https://gitlab.com/craigbarnes/dte/-/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ yiyu ];
mainProgram = "dte";
platforms = lib.platforms.all;
};
})