mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
granted: format using nixfmt
This commit is contained in:
parent
96fd503b3a
commit
a34f215769
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user