Create Nix flake and app package

This commit is contained in:
2024-11-14 19:07:52 +01:00
parent 2a51b8e732
commit e367daf484
3 changed files with 50 additions and 0 deletions

27
flake.lock generated Normal file
View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1731319897,
"narHash": "sha256-PbABj4tnbWFMfBp6OcUK5iGy1QY+/Z96ZcLpooIbuEI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "dc460ec76cbff0e66e269457d7b728432263166c",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

16
flake.nix Normal file
View File

@@ -0,0 +1,16 @@
{
description = "Flake which provides support for Tauron Scrapper package as well as convinient module";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = {
self,
nixpkgs,
}: {
packages.x86_64-linux.tauron-scrapper = nixpkgs.legacyPackages.x86_64-linux.callPackage ./package.nix {};
packages.x86_64-linux.default = self.packages.x86_64-linux.tauron-scrapper;
};
}

7
package.nix Normal file
View File

@@ -0,0 +1,7 @@
{buildNpmPackage, ...}:
buildNpmPackage {
pname = "tauron-scrapper";
version = "0.0.1";
src = ./.;
npmDepsHash = "sha256-MNbrgr1/Qg97q479Vn3rc2ITEXntBHBplT0uui9n0YI=";
}