nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchFromGitHub,
3 gcc15Stdenv,
4 lib,
5 nix-update-script,
6 pkg-config,
7 systemd,
8}:
9gcc15Stdenv.mkDerivation (finalAttrs: {
10 pname = "runapp";
11 version = "0.4.1";
12
13 src = fetchFromGitHub {
14 owner = "c4rlo";
15 repo = "runapp";
16 tag = finalAttrs.version;
17 hash = "sha256-+dIawnBTf8QU0dv93NQUCgW60BrlUXljaoNnRQjfJZQ=";
18 };
19
20 strictDeps = true;
21 nativeBuildInputs = [ pkg-config ];
22 buildInputs = [ systemd ];
23
24 postPatch = ''
25 substituteInPlace Makefile --replace-fail "-march=native" ""
26 '';
27
28 buildFlags = [ "release" ];
29
30 installFlags = [
31 "prefix=$(out)"
32 "install_runner="
33 ];
34
35 passthru.updateScript = nix-update-script { };
36
37 meta = {
38 description = "Application runner for Linux desktop environments that integrate with systemd";
39 homepage = "https://github.com/c4rlo/runapp";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ clementpoiret ];
42 mainProgram = "runapp";
43 platforms = lib.platforms.linux;
44 };
45})