mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
Merge pull request #17085 from j1r1k/gfxtablet-1.4
gfxtablet: git-2013-10-21 -> 1.4
This commit is contained in:
commit
46655e4524
@ -1,32 +1,30 @@
|
||||
{stdenv, fetchgit, linuxHeaders}:
|
||||
let
|
||||
s = # Generated upstream information
|
||||
rec {
|
||||
version="git-2013-10-21";
|
||||
name = "gfxtablet-uinput-driver-${version}";
|
||||
rev = "c4e337ae0b53a8ccdfe11b904ff129714bd25ec4";
|
||||
sha256 = "14ll9rls2mamllmpwjiv2dc6165plazv7ny9cliylafrwgb55l7p";
|
||||
url = "https://github.com/rfc2822/GfxTablet.git";
|
||||
};
|
||||
{stdenv, fetchFromGitHub, linuxHeaders}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.4";
|
||||
name = "gfxtablet-uinput-driver-${version}";
|
||||
|
||||
buildInputs = [
|
||||
linuxHeaders
|
||||
];
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit (s) name version;
|
||||
inherit buildInputs;
|
||||
src = fetchgit {
|
||||
inherit (s) url sha256 rev;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rfc2822";
|
||||
repo = "GfxTablet";
|
||||
rev = "android-app-${version}";
|
||||
sha256 = "1i2m98yypfa9phshlmvjlgw7axfisxmldzrvnbzm5spvv5s4kvvb";
|
||||
};
|
||||
|
||||
preBuild = ''cd driver-uinput'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin"
|
||||
cp networktablet "$out/bin"
|
||||
mkdir -p "$out/share/doc/gfxtablet/"
|
||||
cp ../*.md "$out/share/doc/gfxtablet/"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
inherit (s) version;
|
||||
description = ''Uinput driver for Android GfxTablet tablet-as-input-device app'';
|
||||
license = stdenv.lib.licenses.mit ;
|
||||
maintainers = [stdenv.lib.maintainers.raskin];
|
||||
|
Loading…
Reference in New Issue
Block a user