From f40b7911a2f3b5ba6dcb18ea58f20843976383d3 Mon Sep 17 00:00:00 2001 From: Waldemar Tomme Date: Wed, 11 Dec 2024 18:01:49 +0100 Subject: [PATCH] Add nix based shell --- README.md | 1 + dev/default.nix | 13 +++++++++++ flake.lock | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 21 ++++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 dev/default.nix create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/README.md b/README.md index 9865f3c..901c510 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ rc-update add local ``` ## Notes +- `&pdc` implies +480 when using `&intc` - Regarding GPI DMA issue: https://oftc.irclog.whitequark.org/linux-msm/2023-11-26 (and following days) ## Misc. Links diff --git a/dev/default.nix b/dev/default.nix new file mode 100644 index 0000000..559e977 --- /dev/null +++ b/dev/default.nix @@ -0,0 +1,13 @@ +{ + perSystem = { + config, + pkgs, + ... + }: { + devShells.default = pkgs.mkShell { + packages = with pkgs; [ + android-tools + ]; + }; + }; +} diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..32bddea --- /dev/null +++ b/flake.lock @@ -0,0 +1,58 @@ +{ + "nodes": { + "flake-parts": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib" + }, + "locked": { + "lastModified": 1733312601, + "narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1733759999, + "narHash": "sha256-463SNPWmz46iLzJKRzO3Q2b0Aurff3U1n0nYItxq7jU=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "a73246e2eef4c6ed172979932bc80e1404ba2d56", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-lib": { + "locked": { + "lastModified": 1733096140, + "narHash": "sha256-1qRH7uAUsyQI7R1Uwl4T+XvdNv778H0Nb5njNrqvylY=", + "type": "tarball", + "url": "https://github.com/NixOS/nixpkgs/archive/5487e69da40cbd611ab2cadee0b4637225f7cfae.tar.gz" + }, + "original": { + "type": "tarball", + "url": "https://github.com/NixOS/nixpkgs/archive/5487e69da40cbd611ab2cadee0b4637225f7cfae.tar.gz" + } + }, + "root": { + "inputs": { + "flake-parts": "flake-parts", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..71462b5 --- /dev/null +++ b/flake.nix @@ -0,0 +1,21 @@ +{ + description = "A very basic flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + flake-parts.url = "github:hercules-ci/flake-parts"; + }; + + outputs = { flake-parts, ... } @ inputs: + flake-parts.lib.mkFlake + { inherit inputs; } + { + imports = [ + ./dev + ]; + + systems = [ + "x86_64-linux" + ]; + }; +}