fbset: init package

This commit is contained in:
Mateusz Słodkowicz 2023-08-31 11:00:29 +02:00
parent 6a1ccfcc2b
commit 43527046c9
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
2 changed files with 41 additions and 0 deletions

39
pkgs/apps/fbset.nix Normal file
View File

@ -0,0 +1,39 @@
{ pkgs, lib, stdenv, fetchurl, dpkg, autoPatchelfHook, perl }:
stdenv.mkDerivation rec {
pname = "fbset";
version = "2.1-33";
src = fetchurl {
url = "http://ftp.pl.debian.org/debian/pool/main/f/fbset/fbset_${version}_amd64.deb";
sha256 = "sha256-SgnrDvxLeYxkxFWetB/M5DOJwHk/mB3gTO0EyZRpLk4=";
};
dontBuild = true;
buildInputs = [ perl ];
nativeBuildInputs = [dpkg autoPatchelfHook];
unpackPhase = ''
dpkg -x $src .
'';
installPhase = ''
mkdir -p $out
mv bin $out
mv etc $out
mv usr/share $out
patchShebangs $out/bin/modeline2fb
ls -la $out
'';
preferLocalBuild = true;
meta = with lib; {
description = "Program to modify settings for the framebuffer devices (/dev/fb[0-9]* or /dev/fb/[0-9]*) on Linux, like depth, virtual resolution, timing parameters etc.";
homepage = "https://sources.debian.org/src/fbset/";
license = licenses.gpl2;
platforms = platforms.linux;
};
}

View File

@ -21,6 +21,8 @@ rec {
vpk_fuse = callPackage ./apps/vpk_fuse.nix {}; vpk_fuse = callPackage ./apps/vpk_fuse.nix {};
fbset = callPackage ./apps/fbset.nix {};
swiftshader = callPackage ./libs/swiftshader.nix {}; swiftshader = callPackage ./libs/swiftshader.nix {};