-
-
Save samueldr/8f29f928580329f53f10d2a256be27d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv | |
, fetchFromGitHub | |
, libdrm | |
, pkgconfig | |
}: | |
stdenv.mkDerivation { | |
pname = "drm-sample"; | |
version = "2020-08-17"; | |
src = fetchFromGitHub { | |
owner = "dvdhrm"; | |
repo = "docs"; | |
rev = "fc5c63ff723fb9aa76faf72d6ca29a6aecddd219"; | |
sha256 = "1ai8gzf5jzvyid16dww3j8zmh8i8aanhnbkswdlw2draf99s4bhm"; | |
}; | |
sourceRoot = "source/drm-howto"; | |
postPatch = '' | |
sed -i -e 's/gcc/$(CC)/' Makefile | |
export PKG_CONFIG_PATH="${libdrm.dev}/lib/pkgconfig" | |
''; | |
nativeBuildInputs = [ | |
pkgconfig | |
]; | |
buildInputs = [ | |
libdrm | |
]; | |
installPhase = '' | |
mkdir -p $out/bin | |
cp * $out/bin | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment