summary refs log tree commit diff
path: root/pkgs/desktops/plasma-5/breeze-plymouth
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@mailbox.org>2017-02-25 13:35:00 -0600
committerThomas Tuegel <ttuegel@mailbox.org>2017-02-27 11:49:12 -0600
commit7f84ad5f4c4a2aac98ebb2f4a37a02915e357939 (patch)
tree2b2777319ca8bd22e5e5797f51ad91df0a5cd0f8 /pkgs/desktops/plasma-5/breeze-plymouth
parent8eb4d2afbc1d61d316073f25f5885a46ccb37ea2 (diff)
downloadnixpkgs-7f84ad5f4c4a2aac98ebb2f4a37a02915e357939.tar
nixpkgs-7f84ad5f4c4a2aac98ebb2f4a37a02915e357939.tar.gz
nixpkgs-7f84ad5f4c4a2aac98ebb2f4a37a02915e357939.tar.bz2
nixpkgs-7f84ad5f4c4a2aac98ebb2f4a37a02915e357939.tar.lz
nixpkgs-7f84ad5f4c4a2aac98ebb2f4a37a02915e357939.tar.xz
nixpkgs-7f84ad5f4c4a2aac98ebb2f4a37a02915e357939.tar.zst
nixpkgs-7f84ad5f4c4a2aac98ebb2f4a37a02915e357939.zip
plasma5: Move to desktops/plasma-5
Diffstat (limited to 'pkgs/desktops/plasma-5/breeze-plymouth')
-rw-r--r--pkgs/desktops/plasma-5/breeze-plymouth/default.nix16
-rw-r--r--pkgs/desktops/plasma-5/breeze-plymouth/install-paths.patch19
-rw-r--r--pkgs/desktops/plasma-5/breeze-plymouth/series1
3 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/desktops/plasma-5/breeze-plymouth/default.nix b/pkgs/desktops/plasma-5/breeze-plymouth/default.nix
new file mode 100644
index 00000000000..0de1ca1f680
--- /dev/null
+++ b/pkgs/desktops/plasma-5/breeze-plymouth/default.nix
@@ -0,0 +1,16 @@
+{
+  plasmaPackage, lib, copyPathsToStore,
+  ecm,
+  plymouth
+}:
+
+plasmaPackage {
+  name = "breeze-plymouth";
+  nativeBuildInputs = [ ecm ];
+  buildInputs = [ plymouth ];
+  outputs = [ "out" ];
+  patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
+  postPatch = ''
+      substituteInPlace cmake/FindPlymouth.cmake --subst-var out
+  '';
+}
diff --git a/pkgs/desktops/plasma-5/breeze-plymouth/install-paths.patch b/pkgs/desktops/plasma-5/breeze-plymouth/install-paths.patch
new file mode 100644
index 00000000000..5d5856d122d
--- /dev/null
+++ b/pkgs/desktops/plasma-5/breeze-plymouth/install-paths.patch
@@ -0,0 +1,19 @@
+Index: breeze-plymouth-5.7.3/cmake/FindPlymouth.cmake
+===================================================================
+--- breeze-plymouth-5.7.3.orig/cmake/FindPlymouth.cmake
++++ breeze-plymouth-5.7.3/cmake/FindPlymouth.cmake
+@@ -24,12 +24,8 @@
+ include(FindPkgConfig)
+ 
+ pkg_check_modules(Plymouth ply-boot-client ply-splash-core)
+-exec_program(${PKG_CONFIG_EXECUTABLE}
+-    ARGS ply-splash-core --variable=pluginsdir
+-    OUTPUT_VARIABLE Plymouth_PLUGINSDIR)
+-exec_program(${PKG_CONFIG_EXECUTABLE}
+-    ARGS ply-splash-core --variable=themesdir
+-    OUTPUT_VARIABLE Plymouth_THEMESDIR)
++set(Plymouth_PLUGINSDIR "@out@/lib/plymouth")
++set(Plymouth_THEMESDIR "@out@/share/plymouth/themes")
+ 
+ find_package_handle_standard_args(Plymouth
+     FOUND_VAR
diff --git a/pkgs/desktops/plasma-5/breeze-plymouth/series b/pkgs/desktops/plasma-5/breeze-plymouth/series
new file mode 100644
index 00000000000..8920e7ca518
--- /dev/null
+++ b/pkgs/desktops/plasma-5/breeze-plymouth/series
@@ -0,0 +1 @@
+install-paths.patch