mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +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.
30 lines
829 B
Nix
30 lines
829 B
Nix
{lib, stdenv, fetchurl, libX11, libXft}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "xfractint";
|
|
version = "20.04p16";
|
|
# or fetchFromGitHub(owner,repo,rev) or fetchgit(rev)
|
|
src = fetchurl {
|
|
url = "https://www.fractint.net/ftp/current/linux/xfractint-${version}.tar.gz";
|
|
sha256 = "1ba77jifxv8jql044mdydh4p4ms4w5vw3qrqmcfzlvqfxk7h2m2f";
|
|
};
|
|
|
|
buildInputs = [libX11 libXft];
|
|
|
|
configurePhase = ''
|
|
sed -e 's@/usr/bin/@@' -i Makefile
|
|
'';
|
|
|
|
makeFlags = ["PREFIX=$(out)"];
|
|
|
|
meta = {
|
|
description = "";
|
|
# Code cannot be used in commercial programs
|
|
# Looks like the definition hinges on the price, not license
|
|
license = lib.licenses.unfree;
|
|
maintainers = [lib.maintainers.raskin];
|
|
platforms = lib.platforms.linux;
|
|
homepage = "https://www.fractint.net/";
|
|
mainProgram = "xfractint";
|
|
};
|
|
}
|