nixpkgs/pkgs/by-name/su/surfraw/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

26 lines
704 B
Nix

{lib, stdenv, fetchurl, perl}:
stdenv.mkDerivation rec {
pname = "surfraw";
version = "2.3.0";
src = fetchurl {
url = "https://gitlab.com/surfraw/Surfraw/uploads/2de827b2786ef2fe43b6f07913ca7b7f/surfraw-${version}.tar.gz";
sha256 = "099nbif0x5cbcf18snc58nx1a3q7z0v9br9p2jiq9pcc7ic2015d";
};
configureFlags = [
"--disable-opensearch"
];
nativeBuildInputs = [ perl ];
meta = {
description = "Provides a fast unix command line interface to a variety of popular WWW search engines and other artifacts of power";
homepage = "https://gitlab.com/surfraw/Surfraw";
maintainers = [ ];
platforms = lib.platforms.all;
license = lib.licenses.publicDomain;
};
}