granted: format using nixfmt

This commit is contained in:
José Ribeiro 2024-10-08 21:44:23 +01:00
parent 96fd503b3a
commit a34f215769
No known key found for this signature in database

View File

@ -1,13 +1,14 @@
{ bash
, buildGoModule
, fetchFromGitHub
{
bash,
buildGoModule,
fetchFromGitHub,
, withFish ? false
, fish
withFish ? false,
fish,
, lib
, makeWrapper
, xdg-utils
lib,
makeWrapper,
xdg-utils,
}:
buildGoModule rec {
@ -73,12 +74,13 @@ buildGoModule rec {
# Insert below the #!/bin/sh shebang
echo "$addToPath" | sed "/#!\/bin\/sh/r /dev/stdin" $src/scripts/assume >> $out/bin/assume
'' + lib.optionalString withFish ''
# Install fish script
install -Dm755 $src/scripts/assume.fish $out/share/assume.fish
substituteInPlace $out/share/assume.fish \
--replace /bin/fish ${fish}/bin/fish
'';
''
+ lib.optionalString withFish ''
# Install fish script
install -Dm755 $src/scripts/assume.fish $out/share/assume.fish
substituteInPlace $out/share/assume.fish \
--replace /bin/fish ${fish}/bin/fish
'';
meta = with lib; {
description = "Easiest way to access your cloud";