mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
31 lines
859 B
Nix
31 lines
859 B
Nix
{ stdenv, fetchFromGitHub, lib }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "calamares-nixos-extensions";
|
|
version = "0.3.19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NixOS";
|
|
repo = "calamares-nixos-extensions";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-/WdSMqtF8DKplsDx00l8HYijYvOUBb55Opv3Z8+T6QU=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|