mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-01 23:45:45 +02:00
coord: init at 1.0
This commit is contained in:
parent
e96b24d73f
commit
68d0641efb
40
packages/coord.nix
Normal file
40
packages/coord.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user