~rjpcasalino/bss

365322a3939f0fa4f44798bf17ccc219c9c321a0 — rjpc 2 months ago 52bf523 + e667062
Merge branch 'trunk' of git.sr.ht:~rjpcasalino/bss into trunk
2 files changed, 40 insertions(+), 19 deletions(-)

M flake.lock
M flake.nix
M flake.lock => flake.lock +16 -0
@@ 1,5 1,20 @@
{
  "nodes": {
    "flake-utils": {
      "locked": {
        "lastModified": 1620759905,
        "narHash": "sha256-WiyWawrgmyN0EdmiHyG2V+fqReiVi8bM9cRdMaKQOFg=",
        "owner": "numtide",
        "repo": "flake-utils",
        "rev": "b543720b25df6ffdfcf9227afafc5b8c1fabfae8",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "flake-utils",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1621537868,


@@ 18,6 33,7 @@
    },
    "root": {
      "inputs": {
        "flake-utils": "flake-utils",
        "nixpkgs": "nixpkgs"
      }
    }

M flake.nix => flake.nix +24 -19
@@ 2,24 2,29 @@
  description = "A flake for building bss";

  inputs.nixpkgs.url = github:NixOS/nixpkgs/af0a54285ed4ff131f205517aeafb94a9a5898cb;
  inputs.flake-utils.url = "github:numtide/flake-utils";

  outputs = { self, nixpkgs }: {
    defaultPackage.x86_64-darwin =
    with import nixpkgs { system = "x86_64-darwin"; };
      buildPerlPackage {
      pname = "bss";
      version = "0.1";
      src = self;
      propagatedBuildInputs = [
       perlPackages.TemplateToolkit
       perlPackages.ModuleInstall
       perlPackages.ConfigIniFiles
       perlPackages.YAML
       perlPackages.TextMarkdown
      ];
      buildInputs = [ 
       rsync
      ];
    };
  };
  outputs = { self, nixpkgs, flake-utils }: 
  flake-utils.lib.eachDefaultSystem (system:
    with nixpkgs.legacyPackages.${system};
    let bss = 
        buildPerlPackage {
        pname = "bss";
        version = "0.1";
        src = self;
        propagatedBuildInputs = [
         perlPackages.TemplateToolkit
         perlPackages.ModuleInstall
         perlPackages.ConfigIniFiles
         perlPackages.YAML
         perlPackages.TextMarkdown
        ];
        buildInputs = [ 
         rsync
        ];
      };
    in rec {
      defaultPackage = bss;
      }
  );
}