summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/st/stepreduce/package.nix
blob: 50cf9d3979ef50dbc7ab918eb818221babb7d26f (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
31
32
33
{
  lib,
  stdenv,
  fetchFromGitLab,
}:

stdenv.mkDerivation {
  pname = "stepreduce";
  version = "unstable-2020-04-30";

  src = fetchFromGitLab {
    owner = "sethhillbrand";
    repo = "stepreduce";
    rev = "e89091c33b67e2a18584e1fe3560bfd48ae98773";
    hash = "sha256-bCseBQ6J3sWFt0kzaRkV11lwzOGvNPebvQ6w4OJaMBs=";
  };

  installPhase = ''
    runHook preInstall

    install -Dm755 stepreduce $out/bin/stepreduce

    runHook postInstall
  '';

  meta = {
    description = "Reduces STEP file size by removing redundancy";
    homepage = "https://gitlab.com/sethhillbrand/stepreduce";
    license = lib.licenses.gpl3Plus;
    maintainers = [ ];
    mainProgram = "stepreduce";
  };
}