From 605d67bc9d6127b3dd48400b7b663a35636f5da9 Mon Sep 17 00:00:00 2001 From: clementpoiret Date: Wed, 1 Oct 2025 14:36:34 +0200 Subject: [PATCH] runapp: init at 0.4.1 --- pkgs/by-name/ru/runapp/package.nix | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 pkgs/by-name/ru/runapp/package.nix diff --git a/pkgs/by-name/ru/runapp/package.nix b/pkgs/by-name/ru/runapp/package.nix new file mode 100644 index 0000000000000..4a255a51bbd45 --- /dev/null +++ b/pkgs/by-name/ru/runapp/package.nix @@ -0,0 +1,45 @@ +{ + 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; + }; +})