Files
nixpkgs/pkgs/by-name/st/stepreduce/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

34 lines
695 B
Nix

{
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";
};
}