about summary refs log tree commit diff
path: root/pkgs/by-name/dp/dps8m/package.nix
blob: 939bb17c85063addb7109ad27f54d731bf73ce9b (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
37
38
39
40
41
42
43
44
45
46
47
{ lib
, stdenv
, fetchFromGitLab
, libuv
, coreutils-full
, pkg-config
, gnugrep
, gnused
}:

stdenv.mkDerivation rec {
  pname = "dps8m";
  version = "3.0.1";

  src = fetchFromGitLab {
    owner = "dps8m";
    repo = "dps8m";
    rev = "R${version}";
    hash = "sha256-YCDeHryxXZXOXqUXkbWwH7Vna+ljzydFXPeo2et87x8=";
    fetchSubmodules = true;
  };

  env = {
    ENV = "${coreutils-full}/bin/env";
    GREP = "${gnugrep}/bin/grep";
    SED = "${gnused}/bin/sed";
    PREFIX = placeholder "out";
  };

  nativeBuildInputs = [
    coreutils-full
    pkg-config
  ];

  buildInputs = [
    libuv
  ];

  meta = with lib; {
    description = "DPS8M: GE / Honeywell / Bull DPS‑8/M mainframe simulator";
    homepage = "https://gitlab.com/dps8m/dps8m";
    license = licenses.icu;
    maintainers = with maintainers; [ matthewcroughan sarcasticadmin ];
    mainProgram = "dps8m";
    platforms = platforms.all;
  };
}