From 46d00f3b433346122ba092dc43853aa46af4fec8 Mon Sep 17 00:00:00 2001 From: erikarvstedt <36110478+erikarvstedt@users.noreply.github.com> Date: Mon, 6 Dec 2021 15:01:26 +0100 Subject: [PATCH] flake, overlay: Rename package to `flake-info` (#383) The package now has the same name as the `app` and the command (`bin/flake-info`). --- .github/workflows/cron-flakes.yml | 2 +- .github/workflows/cron-nixpkgs.yml | 2 +- flake.nix | 4 ++-- overlay.nix | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cron-flakes.yml b/.github/workflows/cron-flakes.yml index 173fd42..ee01f3d 100644 --- a/.github/workflows/cron-flakes.yml +++ b/.github/workflows/cron-flakes.yml @@ -54,7 +54,7 @@ jobs: - name: Building import_scripts run: | - nix build ./#packages.x86_64-linux.flake_info + nix build ./#packages.x86_64-linux.flake-info - name: Import ${{ matrix.group }} group run: | diff --git a/.github/workflows/cron-nixpkgs.yml b/.github/workflows/cron-nixpkgs.yml index b39434f..0823d06 100644 --- a/.github/workflows/cron-nixpkgs.yml +++ b/.github/workflows/cron-nixpkgs.yml @@ -57,7 +57,7 @@ jobs: - name: Building import_scripts run: | - nix build ./#packages.x86_64-linux.flake_info + nix build ./#packages.x86_64-linux.flake-info - name: Import ${{ matrix.channel }} channel run: | diff --git a/flake.nix b/flake.nix index 6bf2d7b..4b44119 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,7 @@ import path { inherit pkgs; }; packages = system: { - flake_info = mkPackage ./flake-info system; + flake-info = mkPackage ./flake-info system; frontend = mkPackage ./. system; }; @@ -33,7 +33,7 @@ { flake-info = { type = "app"; - program = "${(packages system).flake_info}/bin/flake-info"; + program = "${(packages system).flake-info}/bin/flake-info"; }; }; in diff --git a/overlay.nix b/overlay.nix index 4f20f0f..e71618a 100644 --- a/overlay.nix +++ b/overlay.nix @@ -3,6 +3,6 @@ final: prev: nixos-search = { frontend = import ./. { pkgs = prev; }; import_scripts = import ./import-scripts { pkgs = prev; }; - flake_info = import ./flake-info { pkgs = prev; }; + flake-info = import ./flake-info { pkgs = prev; }; }; }