Skip to content

Commit

Permalink
removed wsl script and added build package
Browse files Browse the repository at this point in the history
  • Loading branch information
Mast3rwaf1z committed Jun 12, 2024
1 parent 1a89c46 commit 691203a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 11 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
pdf = pkgs.stdenv.mkDerivation {
name = "F-klubbens sangbog continuous";
src = ./.;
nativeBuildInputs = deps;
installPhase = ''
${pkgs.gnumake}/bin/make pdf
mv main_book.pdf $out
Expand All @@ -32,11 +33,20 @@
devShells.${system}.default = pkgs.mkShell {
packages = deps;
};

packages.${system} = {
default = booklet;
pdf = pdf;
#for ubuntu wsl
defaultPackage.${system} = booklet;
build = pkgs.writeScriptBin "build-sangbog" ''
if [[ "$1" == "" ]]; then
target="booklet"
else
target="$1"
fi
${pkgs.gnumake}/bin/make $target
'';
};

};
Expand Down
8 changes: 0 additions & 8 deletions wsl.sh

This file was deleted.

0 comments on commit 691203a

Please sign in to comment.