default.nix (709B)
1 { lib, stdenv, fetchFromGitHub, python3Packages }: 2 3 python3Packages.buildPythonApplication rec { 4 pname = "shellprof"; 5 version = "0-unstable-2021-04-27"; 6 format = "other"; 7 8 src = fetchFromGitHub { 9 owner = "walles"; 10 repo = "shellprof"; 11 rev = "de6999bb37eb132cd18850acc28d988a994f4f86"; 12 hash = "sha256-SlvQJF2AEvVv4Wt0mwBJ8K5RlHvT8fV5av3w3RuYQ5Q="; 13 }; 14 15 dontUseSetuptoolsBuild = true; 16 dontUseSetuptoolsCheck = true; 17 18 installPhase = '' 19 install -Dm755 shellprof -t $out/bin 20 ''; 21 22 meta = with lib; { 23 description = "Profile a shell script based on its printouts"; 24 inherit (src.meta) homepage; 25 license = licenses.mit; 26 maintainers = [ maintainers.sikmir ]; 27 }; 28 }