Skip to content

Commit

Permalink
gnome-monitor-config: fix cross compilation, set strictDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao committed Aug 31, 2024
1 parent cd65211 commit 0a4d37a
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions pkgs/by-name/gn/gnome-monitor-config/package.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{ lib
, fetchFromGitHub
, stdenv
, meson
, ninja
, pkg-config
, cairo
, glib
{
lib,
fetchFromGitHub,
stdenv,
meson,
ninja,
pkg-config,
cairo,
glib,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "gnome-monitor-config";
version = "0-unstable-2023-09-26";

Expand All @@ -19,22 +20,28 @@ stdenv.mkDerivation rec {
hash = "sha256-uVWhQ5SCyadDkeOd+pY2cYZAQ0ZvWMlgndcr1ZIEf50=";
};

strictDeps = true;

depsBuildBuild = [
pkg-config
];

nativeBuildInputs = [
meson
ninja
pkg-config
glib
];

buildInputs = [
cairo
glib
];

installPhase = ''
runHook preInstall
mkdir -p $out/bin
mv src/gnome-monitor-config $out/bin
runHook postInstall
postPatch = ''
substituteInPlace src/meson.build \
--replace-fail "executable('gnome-monitor-config', src" \
"executable('gnome-monitor-config', src, install : true"
'';

meta = with lib; {
Expand Down

0 comments on commit 0a4d37a

Please sign in to comment.