Summary Files Commits Branches @commit @diff @stats
path: root / packages / ramwolf / default.nix
blob: 88788b46353430e439bad6396cf90e04e04c2555 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  lib,
  stdenv,
  fetchFromGitLab,
  ninja,
  pkg-config,
  ed,
  wrapGAppsHook3,
  webkitgtk_4_0,
  libxml2,
  glib-networking,
  gettext,
}:

stdenv.mkDerivation rec {
  pname = "ramwolf";
  version = "latest";

  src = fetchFromGitLab {
    owner = "Syndamia";
    repo = pname;
    rev = "f9a65302933843264b16de8f8fb3c8602096345e";
    hash = "sha256-cBppeEHKmUryCMAwz2doAKGfVW/xsO/Xnqjoe23oftU=";
  };

  patches = [
    (builtins.fetchurl {
      url = "https://gitlab.com/Syndamia/goodwolf/-/snippets/2371826/raw/main/ramwolf.patch?inline=false";
      sha256 = "sha256:0qwsn8kngvhaba7l5l7w1gna5wvx2qhx72gigbcxb82nwfwfm1s7";
    })
  ];

  # configure script not accepting '--prefix'
  prefixKey = "PREFIX=";

  nativeBuildInputs = [
    pkg-config
    wrapGAppsHook3
  ];

  buildInputs = [
    webkitgtk_4_0
    libxml2
    gettext
    glib-networking
  ];

  meta = {
    homepage = "https://gitlab.com/Syndamia/goodwolf/-/snippets/2371826";
    mainProgram = "goodwolf";
  };
}