nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 46 lines 884 B view raw
1{ 2 stdenv, 3 fetchurl, 4 which, 5 diffutils, 6 gnupatch, 7 gnutar, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "tla"; 12 version = "1.3.5"; 13 14 src = fetchurl { 15 url = "https://ftp.gnu.org/old-gnu/gnu-arch/tla-${version}.tar.gz"; 16 sha256 = "01mfzj1i6p4s8191cgd5850hds1zls88hkf9rb6qx1vqjv585aj0"; 17 }; 18 19 patches = [ 20 ./configure-tmpdir.patch 21 ./fix-gcc14.patch 22 ]; 23 24 buildInputs = [ which ]; 25 26 propagatedBuildInputs = [ 27 diffutils 28 gnupatch 29 gnutar 30 ]; 31 32 # Instead of GNU Autoconf, tla uses Tom Lord's now 33 # defunct `package-framework'. 34 buildPhase = '' 35 mkdir +build && cd +build && \ 36 ../src/configure --prefix="$out" && \ 37 make install 38 ''; 39 40 meta = { 41 description = "GNU Arch (aka. `tla'), a distributed revision control system"; 42 mainProgram = "tla"; 43 homepage = "https://www.gnu.org/software/gnu-arch/"; 44 license = "GPL"; 45 }; 46}