mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{ lib
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
, wrapGAppsHook3
|
|
, p7zip
|
|
, parted
|
|
, grub2
|
|
}:
|
|
|
|
with python3Packages;
|
|
|
|
buildPythonApplication rec {
|
|
pname = "woeusb-ng";
|
|
version = "0.2.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "WoeUSB";
|
|
repo = "WoeUSB-ng";
|
|
rev = "v${version}";
|
|
hash = "sha256-2opSiXbbk0zDRt6WqMh97iAt6/KhwNDopOas+OZn6TU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py WoeUSB/*.py miscellaneous/* \
|
|
--replace "/usr/local/" "$out/" \
|
|
--replace "/usr/" "$out/"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
p7zip
|
|
parted
|
|
grub2
|
|
termcolor
|
|
wxpython
|
|
six
|
|
];
|
|
|
|
preConfigure = ''
|
|
mkdir -p $out/bin $out/share/applications $out/share/polkit-1/actions
|
|
'';
|
|
|
|
# Unable to access the X Display, is $DISPLAY set properly?
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Tool to create a Windows USB stick installer from a real Windows DVD or image";
|
|
homepage = "https://github.com/WoeUSB/WoeUSB-ng";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ stunkymonkey ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|