Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1013 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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;
};
})