mirror of
https://github.com/sbrow/strings.git
synced 2025-12-29 15:17:38 -05:00
feat: First commit.
This commit is contained in:
33
flake.nix
Normal file
33
flake.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
description = "Simple, functional, dependency free string manipulation in Vanilla JS";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
in {
|
||||
devShells.x86_64-linux.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
yarn
|
||||
];
|
||||
};
|
||||
|
||||
checks.x86_64-linux.default = pkgs.stdenv.mkDerivation {
|
||||
name = "strings-check";
|
||||
src = ./.;
|
||||
|
||||
nativeBuildInputs = with pkgs; [ yarn ];
|
||||
buildPhase = ''
|
||||
# this line removes a bug where value of $HOME is set to a non-writable /homeless-shelter dir
|
||||
export HOME=$(pwd)
|
||||
|
||||
yarn
|
||||
yarn test
|
||||
'';
|
||||
checkPhase = ''
|
||||
yarn test
|
||||
'';
|
||||
installPhase = ''
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user