mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
fca27c7aa8
(cherry picked from commit a429de9480
)
31 lines
859 B
Nix
31 lines
859 B
Nix
{ stdenv, fetchFromGitHub, lib }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "calamares-nixos-extensions";
|
|
version = "0.3.18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NixOS";
|
|
repo = "calamares-nixos-extensions";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-j+9iZtw9QIKHLo5sr9nkCVoZS7QQCnDDyTGFXD+R+WU=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/{lib,share}/calamares
|
|
cp -r modules $out/lib/calamares/
|
|
cp -r config/* $out/share/calamares/
|
|
cp -r branding $out/share/calamares/
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Calamares modules for NixOS";
|
|
homepage = "https://github.com/NixOS/calamares-nixos-extensions";
|
|
license = with licenses; [ gpl3Plus bsd2 cc-by-40 cc-by-sa-40 cc0 ];
|
|
maintainers = with maintainers; [ vlinkz ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|