depot/third_party/nixpkgs/pkgs/by-name/gn/gnome-monitor-config/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

48 lines
956 B
Nix

{ lib
, fetchFromGitHub
, stdenv
, meson
, ninja
, pkg-config
, cairo
, glib
}:
stdenv.mkDerivation rec {
pname = "gnome-monitor-config";
version = "0-unstable-2023-09-26";
src = fetchFromGitHub {
owner = "jadahl";
repo = "gnome-monitor-config";
rev = "04b854e6411cd9ca75582c108aea63ae3c202f0e";
hash = "sha256-uVWhQ5SCyadDkeOd+pY2cYZAQ0ZvWMlgndcr1ZIEf50=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
cairo
glib
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mv src/gnome-monitor-config $out/bin
runHook postInstall
'';
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";
};
}