feat: add vershell utility

This commit is contained in:
Swarsel 2024-12-16 21:01:06 +01:00
parent d18a99a81e
commit f41ec53ee6
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
4 changed files with 30 additions and 0 deletions

View file

@ -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

View file

@ -19,6 +19,7 @@ let
"bootstrap"
"t2ts"
"ts2t"
"vershell"
];
mkPackages = names: builtins.listToAttrs (map
(name: {

View file

@ -0,0 +1,9 @@
{ writeShellApplication }:
writeShellApplication {
name = "vershell";
runtimeInputs = [ ];
text = ''
nix shell github:nixos/nixpkgs/"$1"#"$2";
'';
}

View file

@ -19,6 +19,7 @@
hm-specialisation
t2ts
ts2t
vershell
(pkgs.writeScriptBin "project" ''
#! ${pkgs.bash}/bin/bash