diff options
| author | aristote <quentin.aristote@irif.fr> | 2025-07-30 00:12:49 +0200 |
|---|---|---|
| committer | aristote <quentin.aristote@irif.fr> | 2025-07-30 00:12:49 +0200 |
| commit | 414e9b5ae2c3a565c5826027c7e1f775cdafc32a (patch) | |
| tree | 65d0bc0af6813e5d6c3ec7f85d65cffdc9f20bbd /pkgs/barista | |
| parent | b3686c3a4848ea3f99c7735b4da21a4677a6e321 (diff) | |
home: i3: barista -> i3status-rust
Diffstat (limited to 'pkgs/barista')
| -rw-r--r-- | pkgs/barista/default.nix | 50 |
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="; -} |
