{ callPackage, fetchgit, fetchFromGitHub, makeRustPlatform, stdenv, pkgs, ... }: let mkRustPlatform = { date, channel }: let mozillaOverlay = fetchFromGitHub { owner = "mozilla"; repo = "nixpkgs-mozilla"; rev = "5300241b41243cb8962fad284f0004afad187dad"; sha256 = "1h3g3817anicwa9705npssvkwhi876zijyyvv4c86qiklrkn5j9w"; }; mozilla = callPackage "${mozillaOverlay.out}/package-set.nix" {}; rustSpecific = (mozilla.rustChannelOf { inherit date channel; }).rust; in makeRustPlatform { cargo = rustSpecific; rustc = rustSpecific; }; in let rustPlatform = mkRustPlatform { date = "2020-01-15"; channel = "nightly"; }; in rustPlatform.buildRustPackage rec { pname = "pjournal"; version = "0.1.0"; # https://git.breakds.org/breakds/nixvital/src/branch/master/pkgs/simple-reflection-server/default.nix postInstall = '' mkdir $out/etc/ cp -r templates $out/etc wrapProgram "$out/bin/pjournal" \ --prefix ROCKET_TEMPLATE_DIR : "$out/etc/templates" ''; preConfigure = '' export HOME=$(mktemp -d) ''; buildInputs = with pkgs; [ openssl pkgconfig postgresql makeWrapper ]; src = fetchgit { url = "https://git.orbekk.com/pjournal.git"; rev = "9ff5d27374b349c5b6903b5a61a0b6b965fc0d5e"; sha256 = "1g5d995dfnxgk117pwqcwiygdxacz0wxsr2digb48x889c60cj4g"; }; cargoSha256 = "1fblssff1g74x70din0wb89ral1651mg00v9gprwffszgc17mcd2"; # verifyCargoDeps = true; }