[NixOS] Build quill from source
This commit is contained in:
parent
45814e6fc3
commit
75c2c4c467
@ -30,18 +30,38 @@ in
|
|||||||
runVend = true;
|
runVend = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
quill = self.stdenv.mkDerivation (rec {
|
quill = with self; rustPlatform.buildRustPackage rec {
|
||||||
name = "quill";
|
name = "quill-${version}";
|
||||||
version = "0.2.0";
|
version = "0baa53c175";
|
||||||
phases = [ "installPhase" ];
|
|
||||||
installPhase = ''
|
src = fetchFromGitHub {
|
||||||
mkdir -p $out/bin
|
owner = "dfinity";
|
||||||
cp $src $out/bin/quill
|
repo = "quill";
|
||||||
chmod a+x $out/bin/quill
|
rev = "6f3117c2b97195eb2b0059011063929553bc18ea";
|
||||||
'';
|
sha256 = "1nr31jmhx1hnqba6n5dk8qal9r843lwss6ldcdyvwz4cmybndnna";
|
||||||
src = self.fetchurl {
|
# date = 2021-06-18T08:16:07+02:00;
|
||||||
url = "https://github.com/dfinity/quill/releases/download/v${version}/quill-linux-x86_64";
|
};
|
||||||
sha256 = "1msgj7y8b0bh0sq14msa5jqwfn9yzwiin5l276qz0h0wjqmnndbs";
|
|
||||||
|
ic = fetchFromGitHub {
|
||||||
|
owner = "dfinity";
|
||||||
|
repo = "ic";
|
||||||
|
rev = "779549eccfcf61ac702dfc2ee6d76ffdc2db1f7f";
|
||||||
|
sha256 = "1r31d5hab7k1n60a7y8fw79fjgfq04cgj9krwa6r9z4isi3919v6";
|
||||||
|
};
|
||||||
|
|
||||||
|
registry = "file://local-registry";
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
export REGISTRY_TRANSPORT_PROTO_INCLUDES=${ic}/rs/registry/transport/proto
|
||||||
|
export IC_BASE_TYPES_PROTO_INCLUDES=${ic}/rs/types/base_types/proto
|
||||||
|
export IC_PROTOBUF_PROTO_INCLUDES=${ic}/rs/protobuf/def
|
||||||
|
export IC_NNS_COMMON_PROTO_INCLUDES=${ic}/rs/nns/common/proto
|
||||||
|
export PROTOC=${protobuf}/bin/protoc
|
||||||
|
'';
|
||||||
|
|
||||||
|
cargoSha256 = "0h756lkvyqwsw3984dm0ys6qrdl22isg2zh2mmzqyw8220fgdzph";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config protobuf ];
|
||||||
|
buildInputs = [ openssl protobuf ];
|
||||||
};
|
};
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user