generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ragnar.nix
57 lines (50 loc) · 1.18 KB
/
ragnar.nix
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
53
54
55
56
57
{ lib
, stdenv
, fetchFromGitHub
, xorg
, freetype
}:
stdenv.mkDerivation rec {
pname = "ragnar";
version = "1.4";
src = fetchFromGitHub {
owner = "cococry";
repo = "Ragnar";
rev = version;
hash = "sha256-OZhIwrKEhTfkw9K8nZIwGZzxXBObseWS92Y+85HmdNs=";
};
/*
FREETYPEINC = /usr/include/freetype2
cp -f ragnar /usr/bin
cp -f ragnar.desktop /usr/share/applications
cp -f ragnarstart /usr/bin
chmod 755 /usr/bin/ragnar
rm -f /usr/bin/ragnar
rm -f /usr/share/applications/ragnar.desktop
*/
postPatch = ''
substituteInPlace Makefile \
--replace "/usr/include/freetype2" "${freetype.dev}/include/freetype2" \
--replace "/usr/" "$out/"
'';
preInstall = ''
mkdir -p $out/bin
mkdir -p $out/share/applications
'';
buildInputs = [
xorg.xorgproto
xorg.libXcursor
xorg.libX11
xorg.libXft
xorg.libXcomposite
freetype
];
meta = with lib; {
description = "Minimal, flexible & user-friendly X tiling window manager";
homepage = "https://github.com/cococry/Ragnar";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ];
mainProgram = "ragnar";
platforms = platforms.all;
};
}