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.
30 lines
815 B
Nix
30 lines
815 B
Nix
{ stdenv, lib, perlPackages, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tes3cmd";
|
|
version = "0.40-pre-release-2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "john-moonsugar";
|
|
repo = pname;
|
|
rev = "f72e9ed9dd18e8545dd0dc2a4056c250cf505790";
|
|
sha256 = "01zqplp8yb0xnl54963n0zkz66rf3hn2x3i255jlhdhx1c43jba7";
|
|
};
|
|
|
|
buildInputs = [ perlPackages.perl ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp tes3cmd $out/bin/tes3cmd
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Command line tool for examining and modifying plugins for the Elder Scrolls game Morrowind by Bethesda Softworks";
|
|
mainProgram = "tes3cmd";
|
|
homepage = "https://github.com/john-moonsugar/tes3cmd";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marius851000 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|