mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +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.
33 lines
829 B
Nix
33 lines
829 B
Nix
{ stdenv, fetchurl, which, diffutils, gnupatch, gnutar }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tla";
|
|
version = "1.3.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://ftp.gnu.org/old-gnu/gnu-arch/tla-${version}.tar.gz";
|
|
sha256 = "01mfzj1i6p4s8191cgd5850hds1zls88hkf9rb6qx1vqjv585aj0";
|
|
};
|
|
|
|
patches = [ ./configure-tmpdir.patch ];
|
|
|
|
buildInputs = [ which ];
|
|
|
|
propagatedBuildInputs = [ diffutils gnupatch gnutar ];
|
|
|
|
# Instead of GNU Autoconf, tla uses Tom Lord's now
|
|
# defunct `package-framework'.
|
|
buildPhase = ''
|
|
mkdir +build && cd +build && \
|
|
../src/configure --prefix="$out" && \
|
|
make install
|
|
'';
|
|
|
|
meta = {
|
|
description = "GNU Arch (aka. `tla'), a distributed revision control system";
|
|
mainProgram = "tla";
|
|
homepage = "https://www.gnu.org/software/gnu-arch/";
|
|
license = "GPL";
|
|
};
|
|
}
|