Skip to content

Commit

Permalink
nixfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Marica Odagaki committed May 5, 2020
1 parent 7d922fb commit 6ba4eae
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
with import (builtins.fetchTarball rec {
# grab a hash from here: https://nixos.org/channels/
name = "nixpkgs-darwin-20.03pre214403.c23427de0d5";
url = "https://github.com/nixos/nixpkgs/archive/c23427de0d501009b9c6d77ff8dda3763c6eb1b4.tar.gz";
url =
"https://github.com/nixos/nixpkgs/archive/c23427de0d501009b9c6d77ff8dda3763c6eb1b4.tar.gz";
# Hash obtained using `nix-prefetch-url --unpack <url>`
sha256 = "0fgv4pyzn39y8ibskn37x9cabmg6gflisigr5l45bkplm06bss91";
}) {};
}) { };
let
expectVersion = version: pkg:
let
actual = lib.getVersion pkg;
in
assert (lib.assertMsg (builtins.toString actual == version) ''
let actual = lib.getVersion pkg;
in assert (lib.assertMsg (builtins.toString actual == version) ''
Expecting version of ${pkg.name} to be ${version} but got ${actual};
adjust the expected version or fetch/build the desired version of the package.
'');
pkg;

rubyVersion = lib.fileContents ./.ruby-version;
bundlerVersion = lib.fileContents ./.bundler-version;
in
stdenv.mkDerivation {
in stdenv.mkDerivation {
name = "deploy-complexity";
buildInputs = [
git
Expand Down

0 comments on commit 6ba4eae

Please sign in to comment.