Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install signal-desktop in macOS via nixpkgs #861

Merged
merged 4 commits into from
Oct 20, 2024
Merged

Install signal-desktop in macOS via nixpkgs #861

merged 4 commits into from
Oct 20, 2024

Conversation

kachick
Copy link
Owner

@kachick kachick commented Oct 20, 2024

Resolves GH-843

@kachick
Copy link
Owner Author

kachick commented Oct 20, 2024

Ah, it has unfree license only in the darwin package...

https://github.com/NixOS/nixpkgs/pull/348165/files#diff-05921dc46b537c59c8a76dfc3c3e9a3a1fd93345ee5bff8573aae36dedf719bcR49

        (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: Package ‘signal-desktop-7.29.0’ in /nix/store/riqkpszjqk02bi1wppfg8ip5xvh102qd-source/pkgs/applications/networking/instant-messengers/signal-desktop/signal-desktop-darwin.nix:35 has an unfree license (‘agpl3Only free unfree’), refusing to evaluate.

       a) To temporarily allow unfree packages, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_UNFREE=1

          Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
                then pass `--impure` in order to allow use of environment variables.

       b) For `nixos-rebuild` you can set
         { nixpkgs.config.allowUnfree = true; }
       in configuration.nix to override this.

       Alternatively you can configure a predicate to allow specific packages:
         { nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
             "signal-desktop"
           ];
         }

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowUnfree = true; }
       to ~/.config/nixpkgs/config.nix.

@kachick
Copy link
Owner Author

kachick commented Oct 20, 2024

@kachick kachick merged commit 4561a84 into main Oct 20, 2024
16 checks passed
@kachick kachick deleted the darwin-signal branch October 20, 2024 11:43
kachick added a commit that referenced this pull request Oct 31, 2024
kachick added a commit that referenced this pull request Oct 31, 2024
Make macOS only depend on free nixpkgs again

- **Revert "Install vscode in macOS via nixpkgs (#882)"**
- **Revert "Install signal-desktop in macOS via nixpkgs (#861)"**
- **Make vscode as the default editor in macOS again**

Closes GH-885
Update, but keeps GH-754
Update GH-884
Reduce struggle around .github/workflows/cleanup-caches.yml

I can choose this way since macOS is not the preferred device

And I'm afraid, #243 might contain the unfree files (nevertheless it cannot be downloaded from other users?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Install signal-desktop on macOS with nixpkgs version
1 participant