Skip to content

Commit

Permalink
programs/tools: add a script tmp-test
Browse files Browse the repository at this point in the history
  • Loading branch information
linyinfeng committed Dec 6, 2023
1 parent 11eb4e1 commit f6e178e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion nixos/profiles/programs/tools/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{pkgs, ...}: let
delink = pkgs.writeShellApplication {
name = "delink";
runtimeInputs = with pkgs; [coreutils];
text = ''
file="$1"
Expand All @@ -16,6 +15,15 @@
chmod -v u+w "$file"
'';
};

tmpTest = pkgs.writeShellApplication {
name = "tmp-test";
text = ''
mkdir -p /tmp/test
cd /tmp/test
exec "$SHELL"
'';
};
in {
environment.systemPackages = with pkgs; [
bc
Expand Down Expand Up @@ -47,6 +55,7 @@ in {
yq-go

delink
tmpTest
];
passthru = {inherit delink;};
}

0 comments on commit f6e178e

Please sign in to comment.