Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Add nix shell and note on how to release new versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostbuster91 committed Apr 18, 2022
1 parent 89aedaf commit cd368b4
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ When generating documentation, it's best to set the version to the current one,

That is, in sbt run: `set version := "0.5.0"`, before running `mdoc` in `docs`.

## Releasing a new version

```sh
$ nix develop
$ sbt ci-release
```

## Copyright

Copyright (C) 2019 SoftwareMill [https://softwaremill.com](https://softwaremill.com).
42 changes: 42 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
inputs.nixpkgs.url = "github:nixos/nixpkgs";
inputs.flake-utils.url = "github:numtide/flake-utils";

outputs = { self, nixpkgs, flake-utils, ... }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
shellPackages = [
"jre"
"sbt"
"nodejs"
"yarn"
];
in
{
devShell = pkgs.mkShell {
buildInputs = map (pkgName: pkgs.${pkgName}) shellPackages;
welcomeMessage = ''
Welcome to the Diffx Nix shell! 👋
Available packages:
${builtins.concatStringsSep "\n" (map (n : "- ${n}") shellPackages)}
'';

shellHook = ''
echo "$welcomeMessage"
'';
};
}
);
}
12 changes: 12 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# For compatibility with non-flake-enabled Nix versions
{ system ? builtins.currentSystem, ... }:
(
import
(
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/b7547d3eed6f32d06102ead8991ec52ab0a4f1a7.tar.gz";
sha256 = "09ln95rvvjxjsnmvzrvyc2ji2l5lz17s671z51f9z8cl4m23ndp2";
}
)
{ src = ./.; }
).shellNix

0 comments on commit cd368b4

Please sign in to comment.