Skip to content

Commit

Permalink
calamares-nixos-extensions: simplify derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvanderlinden committed Feb 27, 2022
1 parent c43b2b2 commit c34a688
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 23 deletions.
27 changes: 8 additions & 19 deletions pkgs/tools/misc/calamares-nixos-extensions/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{ lib, fetchurl, boost, cmake, extra-cmake-modules, kparts, kpmcore
, kservice, libatasmart, libxcb, libyamlcpp, libpwquality, parted, polkit-qt, python, qtbase
, qtquickcontrols, qtsvg, qttools, qtwebengine, util-linux, tzdata
, ckbcomp, xkeyboard_config, mkDerivation, calamares-nixos
{ stdenv, lib, fetchurl
}:

mkDerivation rec {
stdenv.mkDerivation rec {
pname = "calamares-nixos-extensions";
version = "0.0.1";

Expand All @@ -13,20 +10,12 @@ mkDerivation rec {
sha256 = "sha256-Ua7NJXwu9QsWrTzRKMPQnlkr7lECBNAKBRjD6bwCHa8=";
};

nativeBuildInputs = [ cmake extra-cmake-modules ];
buildInputs = [
boost kparts.dev kpmcore.out kservice.dev
libatasmart libxcb libyamlcpp libpwquality parted polkit-qt python
qtbase qtquickcontrols qtsvg qttools qtwebengine.dev util-linux calamares-nixos
];

cmakeFlags = [
"-DPYTHON_LIBRARY=${python}/lib/lib${python.libPrefix}.so"
"-DPYTHON_INCLUDE_DIR=${python}/include/${python.libPrefix}"
"-DCMAKE_VERBOSE_MAKEFILE=True"
"-DCMAKE_BUILD_TYPE=Release"
"-DWITH_PYTHONQT:BOOL=ON"
];
installPhase = ''
mkdir -p $out/{lib,share}/calamares
cp -r modules $out/lib/calamares/
cp -r config/* $out/share/calamares/
cp -r branding $out/share/calamares/
'';

meta = with lib; {
description = "Calamares modules for NixOS";
Expand Down
5 changes: 1 addition & 4 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2487,10 +2487,7 @@ with pkgs;
boost = boost.override { enablePython = true; python = python3; };
};
calamares-nixos = lowPrio (calamares.override { nixos-extensions = true; });
calamares-nixos-extensions = libsForQt515.callPackage ../tools/misc/calamares-nixos-extensions {
python = python3;
boost = boost.override { enablePython = true; python = python3; };
};
calamares-nixos-extensions = callPackage ../tools/misc/calamares-nixos-extensions {};

calendar-cli = callPackage ../tools/networking/calendar-cli { };

Expand Down

0 comments on commit c34a688

Please sign in to comment.