mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
lib,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "drift";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "phlx0";
|
|
repo = "drift";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Gom5PQovsC9Q0jQN2kdJzo2D/uqKGA0i8wJ2Kc/XbfQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-FsNa9qp2MnPk1onv/O13mFi+82yP7D4LdILZsNzHs+4=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-X=main.version=${finalAttrs.version}"
|
|
"-X=main.commit=${finalAttrs.src.tag}"
|
|
"-X=main.date=1970-01-01T00:00:00Z"
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgramArg = "version";
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Terminal screensaver that turns idle time into ambient art";
|
|
longDescription = ''
|
|
Constellations, rain, particles & braille waves. Press any key
|
|
to resume.
|
|
|
|
Every OS has a screensaver. The terminal had nothing — until
|
|
now.
|
|
'';
|
|
homepage = "https://github.com/phlx0/drift";
|
|
changelog = "https://github.com/phlx0/drift/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
mana-byte
|
|
yiyu
|
|
];
|
|
mainProgram = "drift";
|
|
};
|
|
})
|