mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +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"
|
"bootstrap"
|
||||||
"t2ts"
|
"t2ts"
|
||||||
"ts2t"
|
"ts2t"
|
||||||
|
"vershell"
|
||||||
];
|
];
|
||||||
mkPackages = names: builtins.listToAttrs (map (name: {
|
mkPackages = names: builtins.listToAttrs (map (name: {
|
||||||
inherit name;
|
inherit name;
|
||||||
|
|
@ -2682,6 +2683,23 @@ This script allows for quick git branch switching.
|
||||||
|
|
||||||
#+end_src
|
#+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)
|
*** Overlays (additions, overrides, nixpkgs-stable)
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: h:5e3e21e0-57af-4dad-b32f-6400af9b7aab
|
: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
|
hm-specialisation
|
||||||
t2ts
|
t2ts
|
||||||
ts2t
|
ts2t
|
||||||
|
vershell
|
||||||
|
|
||||||
(pkgs.writeScriptBin "project" ''
|
(pkgs.writeScriptBin "project" ''
|
||||||
#! ${pkgs.bash}/bin/bash
|
#! ${pkgs.bash}/bin/bash
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ let
|
||||||
"bootstrap"
|
"bootstrap"
|
||||||
"t2ts"
|
"t2ts"
|
||||||
"ts2t"
|
"ts2t"
|
||||||
|
"vershell"
|
||||||
];
|
];
|
||||||
mkPackages = names: builtins.listToAttrs (map
|
mkPackages = names: builtins.listToAttrs (map
|
||||||
(name: {
|
(name: {
|
||||||
|
|
|
||||||
9
pkgs/vershell/default.nix
Normal file
9
pkgs/vershell/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ writeShellApplication }:
|
||||||
|
|
||||||
|
writeShellApplication {
|
||||||
|
name = "vershell";
|
||||||
|
runtimeInputs = [ ];
|
||||||
|
text = ''
|
||||||
|
nix shell github:nixos/nixpkgs/"$1"#"$2";
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
hm-specialisation
|
hm-specialisation
|
||||||
t2ts
|
t2ts
|
||||||
ts2t
|
ts2t
|
||||||
|
vershell
|
||||||
|
|
||||||
(pkgs.writeScriptBin "project" ''
|
(pkgs.writeScriptBin "project" ''
|
||||||
#! ${pkgs.bash}/bin/bash
|
#! ${pkgs.bash}/bin/bash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue