From 43527046c981cc524c07b48bbfe6117dd40db516 Mon Sep 17 00:00:00 2001 From: materus Date: Thu, 31 Aug 2023 11:00:29 +0200 Subject: [PATCH] fbset: init package --- pkgs/apps/fbset.nix | 39 +++++++++++++++++++++++++++++++++++++++ pkgs/default.nix | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/apps/fbset.nix diff --git a/pkgs/apps/fbset.nix b/pkgs/apps/fbset.nix new file mode 100644 index 0000000..8eeb37d --- /dev/null +++ b/pkgs/apps/fbset.nix @@ -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; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index 209014c..326c999 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -21,6 +21,8 @@ rec { vpk_fuse = callPackage ./apps/vpk_fuse.nix {}; + fbset = callPackage ./apps/fbset.nix {}; + swiftshader = callPackage ./libs/swiftshader.nix {};