coord: init at 1.0

This commit is contained in:
Donovan Glover 2025-04-15 00:28:20 -04:00
parent e96b24d73f
commit 68d0641efb
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

40
packages/coord.nix Normal file
View File

@ -0,0 +1,40 @@
{
lib,
fetchFromSourcehut,
python3Packages,
}:
python3Packages.buildPythonApplication rec {
pname = "coord";
version = "1.0";
src = fetchFromSourcehut {
owner = "~geb";
repo = "coord";
rev = version;
hash = "sha256-noEU8VXrFjhXd39R0Ps9m1/K2lt4fOXsjnNuVCDlknM=";
};
format = "other";
dependencies = with python3Packages; [
pyqt6
];
installPhase = ''
runHook preInstall
install -Dm755 $src/coord $out/bin/coord
runHook postInstall
'';
meta = {
homepage = "https://git.sr.ht/~geb/coord";
description = "Screen coordinate selector";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ donovanglover ];
mainProgram = "coord";
platforms = lib.platforms.linux;
};
}