nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5
6 appstream,
7 blueprint-compiler,
8 desktop-file-utils,
9 gettext,
10 meson,
11 ninja,
12 pkg-config,
13 typescript,
14 wrapGAppsHook4,
15
16 gjs,
17 gtk4,
18 libadwaita,
19}:
20
21stdenv.mkDerivation (finalAttrs: {
22 pname = "ignition";
23 version = "2.1.2";
24
25 src = fetchFromGitHub {
26 owner = "flattool";
27 repo = "ignition";
28 tag = finalAttrs.version;
29 fetchSubmodules = true;
30 hash = "sha256-BqlzxrsbukfkwRIUTN5eaJPRC/dWSWUieDKIqnePZl4=";
31 };
32
33 patches = [
34 # Don't use find_program for detecting gjs. (we don't want to use the build-platform's gjs binary)
35 # We instead rely on the fact that fixupPhase uses patchShebangs on the script.
36 # Also, we manually set the effective entrypoint to make gjs properly find our binary.
37 ./fix-gjs.patch
38 ];
39
40 strictDeps = true;
41
42 nativeBuildInputs = [
43 appstream
44 blueprint-compiler
45 desktop-file-utils
46 gettext
47 gtk4
48 meson
49 ninja
50 pkg-config
51 typescript
52 wrapGAppsHook4
53 ];
54
55 buildInputs = [
56 gjs
57 gtk4
58 libadwaita
59 ];
60
61 meta = {
62 description = "Manage startup apps and scripts";
63 homepage = "https://github.com/flattool/ignition";
64 license = lib.licenses.gpl3Plus;
65 maintainers = with lib.maintainers; [ tomasajt ];
66 mainProgram = "io.github.flattool.Ignition";
67 platforms = lib.platforms.linux;
68 };
69})