summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/li/libcsa/package.nix
blob: 4b4dfb8635b8d8c12686d7981637ce1093a2de5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  stdenv,
  lib,
  fetchFromGitHub,
  unstableGitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "csa";
  version = "1.26-unstable-2024-03-22";

  src = fetchFromGitHub {
    owner = "sakov";
    repo = "csa-c";
    rev = "7b48134613d1d3b337af6d5762df9999a703fb1a";
    hash = "sha256-G/VhXpdvXBT9I6pwiQXVqCoXhc29wJQpGyLeM3kgv7I=";
  };

  sourceRoot = "${finalAttrs.src.name}/csa";

  passthru.updateScript = unstableGitUpdater { };

  meta = {
    description = "C code for cubic spline approximation of 2D scattered data";
    homepage = "https://github.com/sakov/csa-c/";
    platforms = lib.platforms.unix;
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ mkez ];
    mainProgram = "csabathy";
  };
})