more distros
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mrescue";
|
||||
pname = "mrescue-alpine";
|
||||
version = "3.23.2";
|
||||
|
||||
src = fetchurl {
|
||||
45
pkgs/mrescue-debian-standard.nix
Normal file
45
pkgs/mrescue-debian-standard.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
pkgs,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mrescue-debian-standard";
|
||||
version = "13.3.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-${version}-amd64-standard.iso";
|
||||
hash = "sha256-7is9X5vGfYAe7+3b1WmO+7CzU1hyS37T20Yb4/Xn7NY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
p7zip
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
unpackPhase = ''
|
||||
runHook preUnpack
|
||||
mkdir debian-live
|
||||
7z x -odebian-live $src >/dev/null
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
# No build phase needed - files are extracted directly
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
install -Dm644 debian-live/live/vmlinuz $out/kernel
|
||||
install -Dm644 debian-live/live/initrd.img $out/initrd
|
||||
install -Dm644 debian-live/live/filesystem.squashfs $out/filesystem.squashfs
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
45
pkgs/mrescue-debian-xfce.nix
Normal file
45
pkgs/mrescue-debian-xfce.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
pkgs,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mrescue-debian-xfce";
|
||||
version = "13.3.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-${version}-amd64-xfce.iso";
|
||||
hash = "sha256-xvHLR2gOOdsTIu7FrOZdxgfG6keqniEhhf9ywJmtNXQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
p7zip
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
unpackPhase = ''
|
||||
runHook preUnpack
|
||||
mkdir debian-live
|
||||
7z x -odebian-live $src >/dev/null
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
# No build phase needed - files are extracted directly
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
install -Dm644 debian-live/live/vmlinuz $out/kernel
|
||||
install -Dm644 debian-live/live/initrd.img $out/initrd
|
||||
install -Dm644 debian-live/live/filesystem.squashfs $out/filesystem.squashfs
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user