Created
November 1, 2023 04:20
-
-
Save adisbladis/6487c443a46284a968be0a19ef1c3a47 to your computer and use it in GitHub Desktop.
A nix expression to package the firmware updater for my monitor
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
let | |
pkgs = import <nixpkgs> { }; | |
inherit (pkgs) stdenv; | |
in | |
stdenv.mkDerivation { | |
pname = "dell-u3223qe"; | |
version = "m3t102"; | |
src = ./Dell_U3223QE_FWUpdate_M3T102_Ubuntu.deb; | |
nativeBuildInputs = [ | |
pkgs.autoPatchelfHook | |
pkgs.dpkg | |
]; | |
buildInputs = [ | |
pkgs.libusb | |
stdenv.cc.libc | |
pkgs.glib | |
pkgs.libuuid | |
pkgs.gtk3 | |
]; | |
dontUnpack = true; | |
installPhase = '' | |
mkdir -p $out | |
dpkg -x $src $out | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment