mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-18 19:17:31 +03:00
libdisplay-info: init at 0.1.0
Release: https://gitlab.freedesktop.org/emersion/libdisplay-info/-/releases/0.1.0
This commit is contained in:
parent
8c619a1f3c
commit
b4c6ce423b
41
pkgs/development/libraries/libdisplay-info/default.nix
Normal file
41
pkgs/development/libraries/libdisplay-info/default.nix
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitLab
|
||||||
|
, meson
|
||||||
|
, pkg-config
|
||||||
|
, ninja
|
||||||
|
, python3
|
||||||
|
, hwdata
|
||||||
|
, edid-decode
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "libdisplay-info";
|
||||||
|
version = "0.1.0";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
domain = "gitlab.freedesktop.org";
|
||||||
|
owner = "emersion";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-jfi7RpEtyQicW0WWhrQg28Fta60YWxTbpbmPHmXxDhw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ meson pkg-config ninja edid-decode python3 ];
|
||||||
|
|
||||||
|
buildInputs = [ hwdata ];
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace meson.build \
|
||||||
|
--replace "find_program('tool/gen-search-table.py')" "find_program('python3')" \
|
||||||
|
--replace "gen_search_table," "gen_search_table, '$src/tool/gen-search-table.py',"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "EDID and DisplayID library";
|
||||||
|
homepage = "https://gitlab.freedesktop.org/emersion/libdisplay-info";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ pedrohlc ];
|
||||||
|
};
|
||||||
|
}
|
@ -20913,6 +20913,8 @@ with pkgs;
|
|||||||
|
|
||||||
libdiscid = callPackage ../development/libraries/libdiscid { };
|
libdiscid = callPackage ../development/libraries/libdiscid { };
|
||||||
|
|
||||||
|
libdisplay-info = callPackage ../development/libraries/libdisplay-info { };
|
||||||
|
|
||||||
libdivecomputer = callPackage ../development/libraries/libdivecomputer { };
|
libdivecomputer = callPackage ../development/libraries/libdivecomputer { };
|
||||||
|
|
||||||
libdivsufsort = callPackage ../development/libraries/libdivsufsort { };
|
libdivsufsort = callPackage ../development/libraries/libdivsufsort { };
|
||||||
|
Loading…
Reference in New Issue
Block a user