Commit d3e7420ece8f

Vincent Demeester <vincent@sbr.pm>
2018-09-06 14:17:31
Update nix aliases for go too
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 1f909cc
Changed files (2)
fish/go.fish
@@ -1,9 +1,10 @@
 set -gx GOPATH $HOME
 
-function pprof
-    nix run -f ~/.config/nixpkgs/channels.nix unstable.pprof -c pprof $argv
+function _def_go_nix_run_aliases
+    set -l unstable pprof golangci-lint
+    for s in $unstable
+	_nix_run_package $s unstable ~/.config/nixpkgs/channels.nix
+    end
 end
 
-function golangci-lint
-    nix run -f ~/.config/nixpkgs/channels.nix unstable.golangci-lint -c golangci-lint $argv
-end
+_def_go_nix_run_aliases
fish/nix-aliases.fish
@@ -1,12 +1,11 @@
 function _def_nix_run_aliases
     set -l stable mr sshfs ncdu fd entr wakeonlan:python36Packages.wakeonlan lspci:pciutils lsusb:usbutils beet:beets
     set -l unstable op:_1password update-desktop-database:desktop-file-utils
-    set -l channels_file ~/.config/nixpkgs/channels.nix
     for s in $stable
 	_nix_run_package $s nixpkgs
     end
     for s in $unstable
-	_nix_run_package $s unstable $channels_file
+	_nix_run_package $s unstable ~/.config/nixpkgs/channels.nix
     end
 end