-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.nix
61 lines (61 loc) · 1.76 KB
/
default.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
58
59
60
61
{ nixpkgs ? import <nixpkgs> {} }:
let
inherit (nixpkgs) pkgs;
in
{
gnome-session = pkgs.stdenv.mkDerivation {
name = "gnome-session";
src = ./Xmonad.destop;
builder = pkgs.writeText "builder.sh" ''
. $stdenv/setup
mkdir -p $out/share
mkdir -p $out/share/gnome-session/sessions
refpkg=${pkgs.gnome3.gnome_session}
file=share/gnome-session/sessions/gnome.session
ln -sf $refpkg/bin $out
ln -sf $refpkg/libexec $out
find $refpkg/share -maxdepth 1 \
-not -name gnome-session -exec ln -sf {} $out/share \;
sed 's/org.gnome.Shell/Xmonad/' $refpkg/$file > $out/$file
mkdir -p $out/share/applications
cp $src $out/share/applications/Xmonad.desktop
'';
buildInputs = [ pkgs.gnome3.gnome_session pkgs.gnome3.gnome_settings_daemon ];
};
# xmonad = pkgs.stdenv.mkDerivation {
# name = "xmonad-desktop";
# src = ./xmonad.desktop;
# src = pkgs.fetchFromGitHub {
# owner = "juselius";
# repo = "xmonad";
# rev = "28c2f74";
# sha256 = "10b308a7c4a6285bfff8298a3f9e7e3119c652f21fbb3d31beb92d2f8b57eee8";
# };
# buildInputs = with pkgs.haskellPackages; [
# xmonad
# xmonad-extras
# xmonad-contrib
# yeganesh
# xmobar
# # taffybar
# pkgs.dmenu2
# ];
# buildPhase = ''
# ln -s . .xmonad
# HOME=`pwd`
# set +e
# xmonad
# :
# '';
# installPhase = ''
# mkdir -p $out/share/applications
# mkdir -p $out/xmonad
# cp $src/xmonad.desktop $out/share/applications
# cp -a * $out/xmonad
# '';
# buildCommand = ''
# mkdir -p $out/share/applications
# cp $src $out/share/applications/xmonad.desktop
# '';
# };
}