usbimager: init at 1.0.8
This commit is contained in:
parent
859f7617a7
commit
f2bb2d0c3b
47
pkgs/tools/misc/usbimager/default.nix
Normal file
47
pkgs/tools/misc/usbimager/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{ lib, stdenv, fetchFromGitLab, pkg-config
|
||||||
|
, withLibui ? true, gtk3
|
||||||
|
, withUdisks ? stdenv.isLinux, udisks, glib
|
||||||
|
, libX11 }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "usbimager";
|
||||||
|
version = "1.0.8";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "bztsrc";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1j0g1anmdwc3pap3m4kfzqjfkn7q0vpmqniii2kcz7svs5h3ybga";
|
||||||
|
};
|
||||||
|
|
||||||
|
sourceRoot = "source/src/";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
buildInputs = lib.optionals withUdisks [ udisks glib ]
|
||||||
|
++ lib.optional (!withLibui) libX11
|
||||||
|
++ lib.optional withLibui gtk3;
|
||||||
|
# libui is bundled with the source of usbimager as a compiled static libary
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i \
|
||||||
|
-e 's|install -m 2755 -g disk|install |g' \
|
||||||
|
-e 's|-I/usr/include/gio-unix-2.0|-I${glib.dev}/include/gio-unix-2.0|g' \
|
||||||
|
-e 's|install -m 2755 -g $(GRP)|install |g' Makefile
|
||||||
|
'';
|
||||||
|
|
||||||
|
dontConfigure = true;
|
||||||
|
|
||||||
|
makeFlags = [ "PREFIX=$(out)" ]
|
||||||
|
++ lib.optional withLibui "USE_LIBUI=yes"
|
||||||
|
++ lib.optional withUdisks "USE_UDISKS2=yes";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A very minimal GUI app that can write compressed disk images to USB drives";
|
||||||
|
homepage = "https://gitlab.com/bztsrc/usbimager";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ vdot0x23 ];
|
||||||
|
# windows and darwin could work, but untested
|
||||||
|
# feel free add them if you have a machine to test
|
||||||
|
platforms = with platforms; linux;
|
||||||
|
};
|
||||||
|
}
|
|
@ -4081,6 +4081,8 @@ with pkgs;
|
||||||
|
|
||||||
usbview = callPackage ../tools/misc/usbview { };
|
usbview = callPackage ../tools/misc/usbview { };
|
||||||
|
|
||||||
|
usbimager = callPackage ../tools/misc/usbimager { };
|
||||||
|
|
||||||
uwuify = callPackage ../tools/misc/uwuify { };
|
uwuify = callPackage ../tools/misc/uwuify { };
|
||||||
|
|
||||||
anthy = callPackage ../tools/inputmethods/anthy { };
|
anthy = callPackage ../tools/inputmethods/anthy { };
|
||||||
|
|
Loading…
Reference in a new issue