Unverified Commit 97f73e98 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

runapp: init at 0.4.1 (#447721)

parents fe707b4a 605d67bc
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{
  fetchFromGitHub,
  gcc15Stdenv,
  lib,
  nix-update-script,
  pkg-config,
  systemd,
}:
gcc15Stdenv.mkDerivation (finalAttrs: {
  pname = "runapp";
  version = "0.4.1";

  src = fetchFromGitHub {
    owner = "c4rlo";
    repo = "runapp";
    tag = finalAttrs.version;
    hash = "sha256-+dIawnBTf8QU0dv93NQUCgW60BrlUXljaoNnRQjfJZQ=";
  };

  strictDeps = true;
  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ systemd ];

  postPatch = ''
    substituteInPlace Makefile --replace-fail "-march=native" ""
  '';

  buildFlags = [ "release" ];

  installFlags = [
    "prefix=$(out)"
    "install_runner="
  ];

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

  meta = {
    description = "Application runner for Linux desktop environments that integrate with systemd";
    homepage = "https://github.com/c4rlo/runapp";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ clementpoiret ];
    mainProgram = "runapp";
    platforms = lib.platforms.linux;
  };
})