From bbd88dbaa749e95d8cc95a33099e53fdb9105588 Mon Sep 17 00:00:00 2001 From: stubbfel Date: Thu, 17 Nov 2022 21:53:52 +0000 Subject: [PATCH] exscape $ --- flake.nix | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/flake.nix b/flake.nix index 76ab0df..22836a4 100644 --- a/flake.nix +++ b/flake.nix @@ -1,51 +1,51 @@ { - description = "$REPO_DESCRIPTION"; + description = "$$REPO_DESCRIPTION"; inputs.nixpkgs.url = "nixpkgs/nixos-22.05-small"; outputs = { self, nixpkgs }: let - name = "$REPO_NAME"; + name = "$$REPO_NAME"; version = "0.0.1"; supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; }); devTaskScripts = forAllSystems (system: { - autoTag = nixpkgsFor.${system}.writeScript "auto_tag.sh" '' - git tag --force v${version} - git push origin v${version} + autoTag = nixpkgsFor.$${system}.writeScript "auto_tag.sh" '' + git tag --force v$${version} + git push origin v$${version} ''; }); in rec { packages = forAllSystems (system: { - default = nixpkgsFor.${system}.stdenv.mkDerivation { + default = nixpkgsFor.$${system}.stdenv.mkDerivation { name = name; src = self; buildPhase = "echo nothing todo"; - installPhase = "mkdir -p $out/bin; install -t $out/bin src/hello.sh"; + installPhase = "mkdir -p $$out/bin; install -t $$out/bin src/hello.sh"; }; }); apps = forAllSystems (system: let - updateLockScript = nixpkgsFor.${system}.writeShellScriptBin "update_flake_lock.sh" '' + updateLockScript = nixpkgsFor.$${system}.writeShellScriptBin "update_flake_lock.sh" '' nix --experimental-features 'nix-command flakes' flake lock --update-input nixpkgs nix --experimental-features 'nix-command flakes' build ''; in { - default = { type = "app"; program = "${packages.${system}.default}/bin/hello.sh"; }; + 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}"; }; + updateFlakeLock = { type = "app"; program = "$${updateLockScript}/bin/update_flake_lock.sh"; }; + autoTag = { type = "app"; program = "$${devTaskScripts.$${system}.autoTag}"; }; }; }); devShells = forAllSystems (system: { - default = nixpkgsFor.${system}.mkShell { + default = nixpkgsFor.$${system}.mkShell { name = "dev-shell"; packages = [ ]; shellHook = '' @@ -62,8 +62,8 @@ officialRelease = true; bootstrapBuildInputs = [ ]; distPhase = '' - mkdir $out/tarballs - tar -czvf $out/tarballs/${name}-${version}.tar.gz * + mkdir $$out/tarballs + tar -czvf $$out/tarballs/$${name}-$${version}.tar.gz * ''; };