Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 884 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchCrate, 5 perl, 6 writableTmpDirAsHomeHook, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "hmm"; 11 version = "0.6.0"; 12 13 src = fetchCrate { 14 pname = "hmmcli"; 15 inherit version; 16 hash = "sha256-WPePzqZ2iGeJ7kzTj8eg7q1JEjw91WY7gViJJ46SLRY="; 17 }; 18 19 cargoHash = "sha256-wyuV+jWY7w4VDn314yRkqmeqgRijPb+XgmUiy73U3Zc="; 20 21 nativeCheckInputs = [ 22 perl 23 writableTmpDirAsHomeHook 24 ]; 25 # FIXME: remove patch when upstream version of rustc-serialize is updated 26 # https://github.com/NixOS/nixpkgs/pull/310673 27 cargoPatches = [ ./rustc-serialize-fix.patch ]; 28 29 meta = { 30 description = "Small command-line note-taking app"; 31 homepage = "https://github.com/samwho/hmm"; 32 changelog = "https://github.com/samwho/hmm/releases/tag/v${version}"; 33 license = lib.licenses.mit; 34 maintainers = with lib.maintainers; [ figsoda ]; 35 }; 36}