mirror of
https://github.com/aphrody-labs/mullvadvpn-app.git
synced 2026-10-13 22:10:39 +00:00
78 lines
1.8 KiB
Nix
78 lines
1.8 KiB
Nix
{
|
|
description = "Mullvad VPN development environments";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-26.05";
|
|
nixpkgs-unstable.url = "nixpkgs/nixpkgs-unstable";
|
|
devshell = {
|
|
url = "github:numtide/devshell";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
rust-overlay = {
|
|
url = "github:oxalica/rust-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
android-nixpkgs = {
|
|
url = "github:tadfisher/android-nixpkgs";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
nixpkgs,
|
|
nixpkgs-unstable,
|
|
android-nixpkgs,
|
|
rust-overlay,
|
|
flake-utils,
|
|
devshell,
|
|
...
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [
|
|
(import rust-overlay)
|
|
devshell.overlays.default
|
|
];
|
|
};
|
|
|
|
unstable-pkgs = nixpkgs-unstable.legacyPackages.${system};
|
|
|
|
common-toolchain = import ./nix/common-toolchain.nix {
|
|
inherit pkgs unstable-pkgs;
|
|
};
|
|
|
|
desktop-toolchain = import ./nix/desktop-toolchain.nix {
|
|
inherit pkgs common-toolchain;
|
|
};
|
|
|
|
android-toolchain = import ./nix/android-toolchain.nix {
|
|
inherit
|
|
pkgs
|
|
nixpkgs
|
|
android-nixpkgs
|
|
common-toolchain
|
|
;
|
|
};
|
|
|
|
in
|
|
{
|
|
devShells =
|
|
pkgs.lib.optionalAttrs pkgs.stdenv.isLinux {
|
|
default = import ./nix/desktop-devshell.nix {
|
|
inherit pkgs desktop-toolchain;
|
|
};
|
|
}
|
|
// {
|
|
android = import ./nix/android-devshell.nix {
|
|
inherit pkgs android-toolchain;
|
|
};
|
|
};
|
|
}
|
|
);
|
|
}
|