lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 22.05-pre 47 lines 1.7 kB view raw
1{ lib, rustPlatform, fetchCrate, git }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "fac-build"; 5 version = "0.5.4"; 6 7 src = fetchCrate { 8 inherit version; 9 crateName = "fac"; 10 sha256 = "sha256-+JJVuKUdnjJoQJ4a2EE0O6jZdVoFxPwbPgfD2LfiDPI="; 11 }; 12 13 cargoSha256 = "sha256-XT4FQVE+buORuZAFZK5Qnf/Fl3QSvw4SHUuCzWhxUdk="; 14 15 # fac includes a unit test called ls_files_works which assumes it's 16 # running in a git repo. Nix's sandbox runs cargo build outside git, 17 # so this test won't work. 18 checkFlagsArray = [ "--skip=ls_files_works" ]; 19 20 # fac calls git at runtime, expecting it to be in the PATH, 21 # so we need to patch it to call git by absolute path instead. 22 postPatch = '' 23 substituteInPlace src/git.rs \ 24 --replace 'std::process::Command::new("git")' \ 25 'std::process::Command::new("${git}/bin/git")' 26 ''; 27 28 meta = with lib; { 29 description = '' 30 A build system that uses ptrace to handle dependencies automatically 31 ''; 32 longDescription = '' 33 Fac is a general-purpose build system inspired by make that utilizes 34 ptrace to ensure that all dependences are enumerated and that all 35 source files are added to a (git) repo. An important feature of fac 36 is that it automatically handles dependencies, rather than either 37 complaining about them or giving an incorrect build. Currently, fac 38 only runs on linux systems, but on those systems it is incredibly 39 easy to use! 40 ''; 41 homepage = "https://physics.oregonstate.edu/~roundyd/fac"; 42 license = licenses.gpl2Plus; 43 platforms = platforms.linux; 44 maintainers = with maintainers; [ dpercy ]; 45 mainProgram = "fac"; 46 }; 47}