depot/third_party/nixpkgs/pkgs/tools/misc/calamares-nixos-extensions/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

30 lines
838 B
Nix

{ stdenv, fetchFromGitHub, lib }:
stdenv.mkDerivation rec {
pname = "calamares-nixos-extensions";
version = "0.3.15";
src = fetchFromGitHub {
owner = "NixOS";
repo = "calamares-nixos-extensions";
rev = version;
hash = "sha256-PZQjrteLWcInXIavuANHfzfl9gOXATWtIlDUp45j5Ao=";
};
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;
};
}