Unverified Commit 18627173 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

mymake: init at 2.3.6 (#396582)

parents 90492245 e8f196e4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -18721,6 +18721,12 @@
    github = "noahgitsham";
    githubId = 73707948;
  };
  nobbele = {
    name = "nobbele";
    email = "realnobbele@gmail.com";
    github = "nobbele";
    githubId = 17962514;
  };
  nobbz = {
    name = "Norbert Melzer";
    email = "timmelzer+nixpkgs@gmail.com";
+45 −0
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  fetchFromGitHub,
  nix-update-script,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "mymake";
  version = "2.3.6";

  src = fetchFromGitHub {
    owner = "fstromback";
    repo = "mymake";
    tag = "v${finalAttrs.version}";
    hash = "sha256-UQjvxdOvD9O6TrzBFJwh3CistDGZM9HZbcwVPx1n4+A=";
  };

  buildPhase = ''
    runHook preBuild

    ./compile.sh mm

    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall

    install -Dm755 mm $out/bin/mm

    runHook postInstall
  '';

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Tool for compiling and running programs with minimal configuration";
    homepage = "https://github.com/fstromback/mymake";
    maintainers = [ lib.maintainers.nobbele ];
    license = lib.licenses.mit;
    platforms = lib.platforms.linux;
    mainProgram = "mm";
  };
})