nixpkgs/pkgs/by-name/li/lib60870/package.nix

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

36 lines
746 B
Nix
Raw Normal View History

2024-04-04 19:21:58 +00:00
{
cmake,
lib,
stdenv,
fetchFromGitHub,
gitUpdater,
2024-03-24 09:49:04 +00:00
}:
2024-04-04 19:21:58 +00:00
2024-03-24 09:49:04 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "lib60870";
version = "2.3.2";
src = fetchFromGitHub {
owner = "mz-automation";
repo = "lib60870";
rev = "v${finalAttrs.version}";
hash = "sha256-9o+gWQbpCJb+UZzPNmzGqpWD0QbGjg41is/f1POUEQs=";
};
separateDebugInfo = true;
nativeBuildInputs = [ cmake ];
preConfigure = "cd lib60870-C";
2024-04-04 19:21:58 +00:00
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
2024-03-24 09:49:04 +00:00
meta = with lib; {
description = "Implementation of the IEC 60870-5-101/104 protocol";
homepage = "https://libiec61850.com/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ stv0g ];
platforms = platforms.linux;
2024-03-24 09:49:04 +00:00
};
})