blob: 03ec597cd68643c8c424e75af6dff7bf6d11536f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
function gen-shell
if not test $argv[1]
echo "Usage: gen-shell <name>"
return 1
end
if test -e shell.nix
echo "Refusing to override existing `shell.nix`!"
return 1
end
echo 'eval "$(lorri direnv)"' > .envrc
set name $argv[1]
echo "with import <nixpkgs> {};
stdenv.mkDerivation {
name = \"$name\";
buildInputs = with pkgs; [
# Hier könnte Ihre Werbung stehen
];
}" > shell.nix
bat default.nix
end
|