depot/pkgs/by-name/gn/gnome-monitor-config/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

55 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
stdenv,
meson,
ninja,
pkg-config,
cairo,
glib,
}:
stdenv.mkDerivation {
pname = "gnome-monitor-config";
version = "0-unstable-2023-09-26";
src = fetchFromGitHub {
owner = "jadahl";
repo = "gnome-monitor-config";
rev = "04b854e6411cd9ca75582c108aea63ae3c202f0e";
hash = "sha256-uVWhQ5SCyadDkeOd+pY2cYZAQ0ZvWMlgndcr1ZIEf50=";
};
strictDeps = true;
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
meson
ninja
pkg-config
glib
];
buildInputs = [
cairo
glib
];
postPatch = ''
substituteInPlace src/meson.build \
--replace-fail "executable('gnome-monitor-config', src" \
"executable('gnome-monitor-config', src, install : true"
'';
meta = with lib; {
description = "Program to help manage GNOME monitor configuration";
homepage = "https://github.com/jadahl/gnome-monitor-config";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ aveltras ];
platforms = platforms.linux;
mainProgram = "gnome-monitor-config";
};
}