Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 38 lines 726 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "base91"; 9 version = "0.1.0"; 10 11 src = fetchFromGitHub { 12 owner = "douzebis"; 13 repo = "base91"; 14 rev = "v${finalAttrs.version}"; 15 hash = "sha256-Lx569OtNU0z884763FSByH0yXIq6GzeXyp5NVvMejco="; # update as needed 16 }; 17 18 makeFlags = [ 19 "CC=cc" 20 "-C" 21 "src" 22 "all" 23 ]; 24 installFlags = [ 25 "-C" 26 "src" 27 "install" 28 "prefix=$(out)" 29 ]; 30 31 meta = { 32 description = "CLI tool for encoding binary data as ASCII characters"; 33 homepage = "https://github.com/douzebis/base91"; 34 license = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ douzebis ]; 36 platforms = lib.platforms.unix; 37 }; 38})