Nixerus/pkgs/apps/fbset.nix

40 lines
951 B
Nix
Raw Normal View History

2023-08-31 11:00:29 +02:00
{ pkgs, lib, stdenv, fetchurl, dpkg, autoPatchelfHook, perl }:
stdenv.mkDerivation rec {
pname = "fbset";
2025-05-13 13:41:47 +02:00
version = "2.1-34";
2023-08-31 11:00:29 +02:00
src = fetchurl {
url = "http://ftp.pl.debian.org/debian/pool/main/f/fbset/fbset_${version}_amd64.deb";
2025-05-13 13:41:47 +02:00
sha256 = "sha256-fAe35rNjTuRgASq2U+q7rXV6c1yc57gJjswDuibVThw=";
2023-08-31 11:00:29 +02:00
};
dontBuild = true;
buildInputs = [ perl ];
nativeBuildInputs = [dpkg autoPatchelfHook];
unpackPhase = ''
dpkg -x $src .
'';
installPhase = ''
mkdir -p $out
2025-05-13 13:41:47 +02:00
mv usr/bin $out
2023-08-31 11:00:29 +02:00
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;
};
}