summaryrefslogtreecommitdiff
path: root/pkgs/barista
diff options
context:
space:
mode:
authoraristote <quentin.aristote@irif.fr>2025-07-30 00:13:04 +0200
committeraristote <quentin.aristote@irif.fr>2025-07-30 00:13:04 +0200
commit9c088d044873ed84a8ae411e815c41ec558eed29 (patch)
tree65d0bc0af6813e5d6c3ec7f85d65cffdc9f20bbd /pkgs/barista
parent07cb81a1d95e15e7c864dcfd912fc2a22d65d115 (diff)
parent414e9b5ae2c3a565c5826027c7e1f775cdafc32a (diff)
Merge branch 'i3bar'
Diffstat (limited to 'pkgs/barista')
-rw-r--r--pkgs/barista/default.nix50
1 files changed, 0 insertions, 50 deletions
diff --git a/pkgs/barista/default.nix b/pkgs/barista/default.nix
deleted file mode 100644
index d097996..0000000
--- a/pkgs/barista/default.nix
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- buildGoModule,
- fetchFromGitHub,
- wirelesstools,
- fontawesomeMetadata,
- materialDesignIconsMetadata,
- i3statusGo ? null,
-}:
-
-let
- useDefaultConfig = i3statusGo == null;
-in
-buildGoModule {
- name = "barista";
- version = "autorelease";
-
- src = fetchFromGitHub {
- owner = "soumya92";
- repo = "barista";
- rev = "ce8f4953e9ccf194b769f3d9ddb6806a1f7677d7";
- sha256 = "sha256-SzB4Zf9qW0ylob4iLTHR3tZpUl9Ns/F3gaUjuU+Ys1k=";
- };
-
- patchPhase = ''
- mkdir main
- ''
- + (
- if useDefaultConfig then # use samples/i3status/i3status.go as config
- ''
- mv samples/i3status/i3status.go main/i3status.go
- ''
- # import config and patch font loading
- else
- ''
- cp ${i3statusGo} main/i3status.go
- substituteInPlace main/i3status.go \
- --replace 'fontawesome.Load()' 'fontawesome.Load("${fontawesomeMetadata}")' \
- --replace 'mdi.Load()' 'mdi.Load("${materialDesignIconsMetadata}")'
- ''
- )
- # patch call to iwgetid
- + ''
- substituteInPlace modules/wlan/wlan.go \
- --replace '/sbin/iwgetid' '${wirelesstools}/bin/iwgetid'
- '';
-
- subPackages = [ "main/i3status.go" ];
-
- vendorHash = "sha256-gpzxwtGxHcidRYY8o1Lz0iboU5aNnwsWfOoGo6Lvefo=";
-}