Browse Source

.config/nixpkgs: Add android scripts and tools

master
tdro 4 months ago
parent
commit
63c3e36a0e
4 changed files with 367 additions and 0 deletions
  1. +9
    -0
      .config/nixpkgs/config.nix
  2. +26
    -0
      .config/nixpkgs/packages/mkbootfs/default.nix
  3. +27
    -0
      .config/nixpkgs/packages/mkbootimg/default.nix
  4. +305
    -0
      .local/bin/mkboot

+ 9
- 0
.config/nixpkgs/config.nix View File

@@ -250,6 +250,15 @@ in
paths = [ gummi texworks texlive.combined.scheme-full ];
};

Android = pkgs.buildEnv {
name = "android";
paths = [
(callPackage ./packages/mkbootfs/default.nix {})
(callPackage ./packages/mkbootimg/default.nix {})
abootimg
];
};

JavaScript = pkgs.buildEnv {
name = "javascript";
paths = [


+ 26
- 0
.config/nixpkgs/packages/mkbootfs/default.nix View File

@@ -0,0 +1,26 @@
{ stdenv, fetchgit }:

stdenv.mkDerivation rec {

pname = "mkbootfs";
url = "https://github.com/osm0sis/mkbootfs.git";
version = "be612778c72ce848141eda99563960da5ff61389";

src = fetchgit {
inherit url;
rev = version;
sha256 = "09m9wblk9vnp10x9agqz1iaxp56xnpgvpncm949lcy5pbjlnvsnf";
};

installPhase = ''
mkdir -p $out/bin
cp mkbootfs $out/bin
'';

meta = with stdenv.lib; {
homepage = url;
platforms = platforms.linux;
license = licenses.unlicense;
description = "mkbootfs, forked and updated";
};
}

+ 27
- 0
.config/nixpkgs/packages/mkbootimg/default.nix View File

@@ -0,0 +1,27 @@
{ stdenv, fetchgit }:

stdenv.mkDerivation rec {

pname = "mkbootimg";
url = "https://github.com/osm0sis/mkbootimg.git";
version = "8dd5b5b5c68bcf8ecdb5859aa7036df276efcc79";

src = fetchgit {
inherit url;
rev = version;
sha256 = "0l1xg2ifaznpkhi74kyrjr2sqsihzp99bdn1c6y0qwfxn6rgbxn2";
};

installPhase = ''
mkdir -p $out/bin
cp mkbootimg $out/bin
cp unpackbootimg $out/bin
'';

meta = with stdenv.lib; {
homepage = url;
platforms = platforms.linux;
license = licenses.unlicense;
description = "mkbootimg + unpackbootimg, forked and updated";
};
}

+ 305
- 0
.local/bin/mkboot
File diff suppressed because it is too large
View File


Loading…
Cancel
Save