aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-08-24 05:40:34 +0100
committerAkshay <[email protected]>2020-08-24 05:40:34 +0100
commit28194780aa62b8f02432eb29d857adbd26d88569 (patch)
treea5498f1e64182fb0aeda31dce2701f497d21e2c2
parent8ae488341a66d27c91230b1c76d415d59c0e418b (diff)
add readmesync
-rw-r--r--nix/nixpkgs.nix10
-rw-r--r--readme.md10
2 files changed, 10 insertions, 10 deletions
diff --git a/nix/nixpkgs.nix b/nix/nixpkgs.nix
index b5675fb..017dc11 100644
--- a/nix/nixpkgs.nix
+++ b/nix/nixpkgs.nix
@@ -1,13 +1,8 @@
1 1
2let 2let
3 # Manage this with https://github.com/nmattia/niv
4 # or define { nixpkgs = ...; nixpkgs-mozilla = ...; }
5 # yourself.
6 sources = import ./sources.nix; 3 sources = import ./sources.nix;
7 4
8 rustChannelsOverlay = import "${sources.nixpkgs-mozilla}/rust-overlay.nix"; 5 rustChannelsOverlay = import "${sources.nixpkgs-mozilla}/rust-overlay.nix";
9 # Useful if you also want to provide that in a nix-shell since some rust tools depend
10 # on that.
11 rustChannelsSrcOverlay = import "${sources.nixpkgs-mozilla}/rust-src-overlay.nix"; 6 rustChannelsSrcOverlay = import "${sources.nixpkgs-mozilla}/rust-src-overlay.nix";
12 7
13in import sources.nixpkgs { 8in import sources.nixpkgs {
@@ -15,11 +10,6 @@ in import sources.nixpkgs {
15 rustChannelsOverlay 10 rustChannelsOverlay
16 rustChannelsSrcOverlay 11 rustChannelsSrcOverlay
17 (self: super: { 12 (self: super: {
18 # Replace "latest.rustChannels.stable" with the version of the rust tools that
19 # you would like. Look at the documentation of nixpkgs-mozilla for examples.
20 #
21 # NOTE: "rust" instead of "rustc" is not a typo: It will include more than needed
22 # but also the much needed "rust-std".
23 rustc = super.latest.rustChannels.stable.rust; 13 rustc = super.latest.rustChannels.stable.rust;
24 inherit (super.latest.rustChannels.stable) cargo rust rust-fmt rust-std clippy; 14 inherit (super.latest.rustChannels.stable) cargo rust rust-fmt rust-std clippy;
25 }) 15 })
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..da6c0e2
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,10 @@
1### hedge
2
3> minimal url shortner
4
5### build
6
7```
8$ crate2nix generate
9$ nix-build
10```