mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: add vershell utility
This commit is contained in:
parent
d18a99a81e
commit
f41ec53ee6
4 changed files with 30 additions and 0 deletions
|
|
@ -1900,6 +1900,7 @@ Note: The structure of generating the packages was changed in commit =2cf03a3 re
|
|||
"bootstrap"
|
||||
"t2ts"
|
||||
"ts2t"
|
||||
"vershell"
|
||||
];
|
||||
mkPackages = names: builtins.listToAttrs (map (name: {
|
||||
inherit name;
|
||||
|
|
@ -2682,6 +2683,23 @@ This script allows for quick git branch switching.
|
|||
|
||||
#+end_src
|
||||
|
||||
**** vershell
|
||||
|
||||
This script allows for quick git branch switching.
|
||||
|
||||
#+begin_src nix :tangle pkgs/vershell/default.nix
|
||||
{ writeShellApplication }:
|
||||
|
||||
writeShellApplication {
|
||||
name = "vershell";
|
||||
runtimeInputs = [ ];
|
||||
text = ''
|
||||
nix shell github:nixos/nixpkgs/"$1"#"$2";
|
||||
'';
|
||||
}
|
||||
|
||||
#+end_src
|
||||
|
||||
*** Overlays (additions, overrides, nixpkgs-stable)
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: h:5e3e21e0-57af-4dad-b32f-6400af9b7aab
|
||||
|
|
@ -7508,6 +7526,7 @@ This is just a separate container for derivations defined in [[#h:64a5cc16-6b16-
|
|||
hm-specialisation
|
||||
t2ts
|
||||
ts2t
|
||||
vershell
|
||||
|
||||
(pkgs.writeScriptBin "project" ''
|
||||
#! ${pkgs.bash}/bin/bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue