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
45 lines
1013 B
Nix
45 lines
1013 B
Nix
{
|
|
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;
|
|
};
|
|
})
|