From a280146258027b3d5cc4fc6068d55e0f2d889f7c Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Thu, 1 Sep 2022 13:38:48 +0200 Subject: [PATCH] flake: Make it the same as moxxyv2 --- flake.lock | 12 ++++++------ flake.nix | 13 ++++++++----- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index b1054f5..a126c34 100644 --- a/flake.lock +++ b/flake.lock @@ -17,16 +17,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1650034868, - "narHash": "sha256-OAaf5BdWKGXTXvYnbvJuoQjSWnVKgt1cIOChF0MFt2o=", - "owner": "PapaTutuWawa", + "lastModified": 1660551188, + "narHash": "sha256-a1LARMMYQ8DPx1BgoI/UN4bXe12hhZkCNqdxNi6uS0g=", + "owner": "NixOS", "repo": "nixpkgs", - "rev": "13a5646d450052b88067cab37b198f8a2737e431", + "rev": "441dc5d512153039f19ef198e662e4f3dbb9fd65", "type": "github" }, "original": { - "owner": "PapaTutuWawa", - "ref": "nixos-unstable-flutter-2.13.0-0.1.pre", + "owner": "NixOS", + "ref": "nixpkgs-unstable", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 585fe42..f3277ab 100644 --- a/flake.nix +++ b/flake.nix @@ -1,14 +1,17 @@ { - description = "moxlib"; + description = "moxplatform"; inputs = { - nixpkgs.url = "github:PapaTutuWawa/nixpkgs/nixos-unstable-flutter-2.13.0-0.1.pre"; + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; - config.android_sdk.accept_license = true; + config = { + android_sdk.accept_license = true; + allowUnfree = true; + }; }; android = pkgs.androidenv.composeAndroidPackages { # TODO: Find a way to pin these @@ -26,11 +29,11 @@ useGoogleAPIs = false; useGoogleTVAddOns = false; }; - pinnedJDK = pkgs.jdk11; + pinnedJDK = pkgs.jdk; in { devShell = pkgs.mkShell { buildInputs = with pkgs; [ - flutterPackages.beta pinnedJDK android.platform-tools flutterPackages.dart-beta # Flutter + flutter pinnedJDK android.platform-tools dart # Flutter gitlint jq # Code hygiene ripgrep # General utilities