about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/uc/ucode/package.nix
blob: 9998b24df08264656109513d98e1612ee46d8026 (plain) (blame)
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
31
32
33
34
35
36
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, json_c
}:

stdenv.mkDerivation rec {
  pname = "ucode";
  version = "0.0.20231102";

  src = fetchFromGitHub {
    owner = "jow-";
    repo = "ucode";
    rev = "v${version}";
    hash = "sha256-dJjlwuQLS73D6W/bmhWLPPaT7himQyO1RvD+MXVxBMw=";
  };

  buildInputs = [
    json_c
  ];

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  meta = with lib; {
    description = "JavaScript-like language with optional templating";
    homepage = "https://github.com/jow-/ucode";
    license = licenses.isc;
    platforms = platforms.linux;
    maintainers = with maintainers; [ mkg20001 ];
  };
}