From 45d89cda76446734d8ec46c77aa73262e92d6077 Mon Sep 17 00:00:00 2001 From: stubbfelnewpc Date: Tue, 1 Nov 2022 21:14:11 +0000 Subject: [PATCH] fix hook --- .devcontainer/devcontainer.json | 1 - README.md | 2 +- flake.nix | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7547a14..d28a889 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -13,7 +13,6 @@ "jnoortheen.nix-ide", "ms-azuretools.vscode-docker", "eamodio.gitlens", - "mhutchie.git-graph", "streetsidesoftware.code-spell-checker" ], // Use 'forwardPorts' to make a list of ports inside the container available locally. diff --git a/README.md b/README.md index 7a90dfc..156d603 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ## Nix Flake commands ```sh -# nix flake are experimental and required following options --experimental-features 'nix-command flakes' +# nix flake are experimental and required following options --experimental-features 'nix-command flakes' # create alias for nix --experimental-features 'nix-command flakes' alias nixe && echo Alias for nixe exists || alias nixe="nix --experimental-features 'nix-command flakes'" diff --git a/flake.nix b/flake.nix index 3685a62..76ab0df 100644 --- a/flake.nix +++ b/flake.nix @@ -11,7 +11,7 @@ nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; }); devTaskScripts = forAllSystems (system: { - autoTag = nixpkgsFor.${system}.writeShellScriptBin "auto_tag.sh" '' + autoTag = nixpkgsFor.${system}.writeScript "auto_tag.sh" '' git tag --force v${version} git push origin v${version} ''; @@ -39,7 +39,7 @@ default = { type = "app"; program = "${packages.${system}.default}/bin/hello.sh"; }; devTasks = { updateFlakeLock = { type = "app"; program = "${updateLockScript}/bin/update_flake_lock.sh"; }; - autoTag = { type = "app"; program = "${devTaskScripts.${system}.autoTag}/bin/auto_tag.sh"; }; + autoTag = { type = "app"; program = "${devTaskScripts.${system}.autoTag}"; }; }; });