summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorThomas Strobel <ts468@cam.ac.uk>2015-06-08 11:18:26 +0200
committerThomas Strobel <ts468@cam.ac.uk>2015-06-08 11:22:09 +0200
commitd3435d7ce006436a4056d0800083daffbfa8bca6 (patch)
tree5968bdeb7bb5728348f14a589a6b3f2d26fc4bfe /pkgs
parent02b79010234cc6ed670ab6c0353f2b08283bdec6 (diff)
downloadnixpkgs-d3435d7ce006436a4056d0800083daffbfa8bca6.tar
nixpkgs-d3435d7ce006436a4056d0800083daffbfa8bca6.tar.gz
nixpkgs-d3435d7ce006436a4056d0800083daffbfa8bca6.tar.bz2
nixpkgs-d3435d7ce006436a4056d0800083daffbfa8bca6.tar.lz
nixpkgs-d3435d7ce006436a4056d0800083daffbfa8bca6.tar.xz
nixpkgs-d3435d7ce006436a4056d0800083daffbfa8bca6.tar.zst
nixpkgs-d3435d7ce006436a4056d0800083daffbfa8bca6.zip
New package: Calamares
Add Calamares, a distribution independent installer framework.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/calamares/default.nix35
-rw-r--r--pkgs/top-level/all-packages.nix7
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/misc/calamares/default.nix b/pkgs/tools/misc/calamares/default.nix
new file mode 100644
index 00000000000..c8fe39f6a7a
--- /dev/null
+++ b/pkgs/tools/misc/calamares/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchgit, cmake, qt5, polkit_qt5, libyamlcpp, python, boost, parted
+, extra-cmake-modules, kconfig, ki18n, kcoreaddons, solid, utillinux, libatasmart }:
+
+stdenv.mkDerivation rec {
+  name = "calamares-${version}";
+  version = "1.0";
+
+  src = fetchgit {
+    url = "https://github.com/calamares/calamares.git";
+    rev = "dabfb68a68cb012a90cd7b94a22e1ea08f7dd8ad";
+    sha256 = "2851ce487aaac61d2df342a47f91ec87fe52ff036227ef697caa7056fe5f188c";
+  };
+
+  buildInputs = [
+    cmake qt5.base qt5.tools libyamlcpp python boost polkit_qt5 parted
+    extra-cmake-modules kconfig ki18n kcoreaddons solid utillinux libatasmart
+  ];
+
+  cmakeFlags = [
+    "-DPYTHON_LIBRARY=${python}/lib/libpython${python.majorVersion}m.so"
+    "-DPYTHON_INCLUDE_DIR=${python}/include/python${python.majorVersion}m"
+    "-DWITH_PARTITIONMANAGER=1"
+  ];
+
+  preInstall = ''
+    substituteInPlace cmake_install.cmake --replace "${polkit_qt5}" "$out"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Distribution-independent installer framework";
+    license = licenses.gpl3;
+    maintainers = with stdenv.lib.maintainers; [ tstrobel ];
+    platforms = platforms.linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 0311f6ac7b8..17f05d0eaad 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1639,6 +1639,13 @@ let
     ghostscript = null;
   };
 
+  calamares = callPackage ../tools/misc/calamares rec {
+    python = python3;
+    boost = callPackage ../development/libraries/boost/1.57.nix { python=python3; };
+    libyamlcpp = callPackage ../development/libraries/libyaml-cpp { makePIC=true; boost=boost; };
+    inherit (kf5_stable) extra-cmake-modules kconfig ki18n kcoreaddons solid;
+  };
+
   grub = callPackage_i686 ../tools/misc/grub {
     buggyBiosCDSupport = config.grub.buggyBiosCDSupport or true;
     automake = automake112x; # fails with 13 and 14