aboutsummaryrefslogtreecommitdiff
path: root/nix/common.nix
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-10-04 18:27:57 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-10-19 16:56:07 +0200
commitdc017a0cab40cb2f33a01b420bb1b04038abb875 (patch)
tree239b6a9245b842a4daaceead93b71d8ddbeab498 /nix/common.nix
parent1acf7e4c66aab0a0b5bcce8eb2965b35d587dd2a (diff)
downloadgarage-dc017a0cab40cb2f33a01b420bb1b04038abb875.tar.gz
garage-dc017a0cab40cb2f33a01b420bb1b04038abb875.zip
Build Garage with Nixfeature/static
Diffstat (limited to 'nix/common.nix')
-rw-r--r--nix/common.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nix/common.nix b/nix/common.nix
new file mode 100644
index 00000000..aee38bd8
--- /dev/null
+++ b/nix/common.nix
@@ -0,0 +1,27 @@
+rec {
+ /*
+ * Fixed dependencies
+ */
+ pkgsSrc = fetchTarball {
+ # As of 2021-10-04
+ url ="https://github.com/NixOS/nixpkgs/archive/b27d18a412b071f5d7991d1648cfe78ee7afe68a.tar.gz";
+ sha256 = "1xy9zpypqfxs5gcq5dcla4bfkhxmh5nzn9dyqkr03lqycm9wg5cr";
+ };
+ cargo2nixSrc = fetchGit {
+ # As of 2021-10-06
+ url = "https://github.com/superboum/cargo2nix";
+ rev = "1364752cd784764db2ef5b1e1248727cebfae2ce";
+ };
+ rustOverlaySrc = fetchGit {
+ # As of 2021-10-05
+ url = "https://github.com/oxalica/rust-overlay";
+ rev = "9c2fc6a62ccbc6f420d71ecac6bf0b84dbbee64f";
+ };
+
+ /*
+ * Shared objects
+ */
+ rustOverlay = import rustOverlaySrc;
+ cargo2nix = import cargo2nixSrc;
+ cargo2nixOverlay = import "${cargo2nixSrc}/overlay";
+}