20 lines
468 B
Nix
20 lines
468 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
} @ inputs: let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs { inherit system; config.allowUnfree = true;};
|
|
in {
|
|
packages."${system}".default = pkgs.writeShellApplication {
|
|
name = "hello_world";
|
|
|
|
runtimeInputs = with pkgs; [sane-backends brscan5 ghostscript];
|
|
|
|
text = builtins.readFile ./scanbuddy.bash;
|
|
};
|
|
};
|
|
}
|