add flake

This commit is contained in:
Rene Vergara 2025-04-11 14:43:50 -05:00
parent 0d0676035d
commit 32ee47be03
Signed by: pitmutt
SSH key fingerprint: SHA256:vNa8FIqbBZjV9hOCkXyOzd7gqWCMCfkcfiPH2zaGfQ0
4 changed files with 199 additions and 2 deletions

View file

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.12.2.1]
### Added
- `flake.nix`
## [0.12.2.0] ## [0.12.2.0]
### Added ### Added

180
flake.lock generated Normal file
View file

@ -0,0 +1,180 @@
{
"nodes": {
"borsh": {
"flake": false,
"locked": {
"lastModified": 1716294836,
"narHash": "sha256-dEv3m7U7buQr9kX68U+r5Ro4KRXesGsSpqBs2CLddaY=",
"owner": "khazaddum",
"repo": "borsh",
"rev": "b8e5cfd6ed875707fa82698d5c356ac062203e71",
"type": "github"
},
"original": {
"owner": "khazaddum",
"repo": "borsh",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1743550720,
"narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "c621e8422220273271f52058f618c94e405bb0f5",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_2"
},
"locked": {
"lastModified": 1743550720,
"narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "c621e8422220273271f52058f618c94e405bb0f5",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"foreign-rust": {
"inputs": {
"borsh": "borsh",
"flake-parts": "flake-parts_2",
"haskell-flake": "haskell-flake",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1744308037,
"narHash": "sha256-9jZ6gXE6tfWzB3Nj2mUnEYxLo4g6jgaXSujVOtnxI/w=",
"ref": "main",
"rev": "1b06cbcd98b33fffa1c2cd57fed19e69120d6625",
"revCount": 27,
"type": "git",
"url": "https://code.vergara.tech/Vergara_Tech/haskell-foreign-rust"
},
"original": {
"ref": "main",
"type": "git",
"url": "https://code.vergara.tech/Vergara_Tech/haskell-foreign-rust"
}
},
"haskell-flake": {
"locked": {
"lastModified": 1743922999,
"narHash": "sha256-Wh+Zak8sZUgair4pnZR0mLrLIhhInHS8izj7C1H10B8=",
"owner": "srid",
"repo": "haskell-flake",
"rev": "d102e0f8a1773b1a63a616faef670cf5e129f9e9",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "haskell-flake",
"type": "github"
}
},
"haskell-flake_2": {
"locked": {
"lastModified": 1743922999,
"narHash": "sha256-Wh+Zak8sZUgair4pnZR0mLrLIhhInHS8izj7C1H10B8=",
"owner": "srid",
"repo": "haskell-flake",
"rev": "d102e0f8a1773b1a63a616faef670cf5e129f9e9",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "haskell-flake",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1744157173,
"narHash": "sha256-bWSjxDwq7iVePrhmA7tY2dyMWHuNJo8knkO4y+q4ZkY=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "6a39c6e495eefabc935d8ddf66aa45d85b85fa3f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1743296961,
"narHash": "sha256-b1EdN3cULCqtorQ4QeWgLMrd5ZGOjLSLemfa00heasc=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "e4822aea2a6d1cdd36653c134cacfd64c97ff4fa",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs-lib_2": {
"locked": {
"lastModified": 1743296961,
"narHash": "sha256-b1EdN3cULCqtorQ4QeWgLMrd5ZGOjLSLemfa00heasc=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "e4822aea2a6d1cdd36653c134cacfd64c97ff4fa",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1744316434,
"narHash": "sha256-lzFCg/1C39pyY2hMB2gcuHV79ozpOz/Vu15hdjiFOfI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "d19cf9dfc633816a437204555afeb9e722386b76",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-parts": "flake-parts",
"foreign-rust": "foreign-rust",
"haskell-flake": "haskell-flake_2",
"nixpkgs": "nixpkgs_2"
}
}
},
"root": "root",
"version": 7
}

View file

@ -3,8 +3,9 @@
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake"; haskell-flake.url = "github:srid/haskell-flake";
foreign-rust.url = "git+https://code.vergara.tech/Vergara_Tech/haskell-foreign-rust?ref=main";
}; };
outputs = inputs@{ self, nixpkgs, flake-parts, ... }: outputs = inputs@{ self, nixpkgs, flake-parts, foreign-rust, ... }:
flake-parts.lib.mkFlake { inherit inputs; } { flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed; systems = nixpkgs.lib.systems.flakeExposed;
imports = [ inputs.haskell-flake.flakeModule ]; imports = [ inputs.haskell-flake.flakeModule ];
@ -28,6 +29,9 @@
# aeson.source = "1.5.0.0"; # Hackage version override # aeson.source = "1.5.0.0"; # Hackage version override
# shower.source = inputs.shower; # shower.source = inputs.shower;
# }; # };
packages = {
foreign-rust.source = inputs.foreign-rust;
};
settings = { settings = {
# aeson = { # aeson = {
@ -37,6 +41,13 @@
# haddock = false; # haddock = false;
# broken = false; # broken = false;
# }; # };
borsh = {
broken = false;
};
foreign-rust = {
check = false;
};
}; };
# devShell = { # devShell = {

View file

@ -5,7 +5,7 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack -- see: https://github.com/sol/hpack
name: hexstring name: hexstring
version: 0.12.1.0 version: 0.12.1.1
synopsis: Fast and safe representation of a hex string synopsis: Fast and safe representation of a hex string
description: Provides an interface for converting any object that has a 'Binary' instance to and from a hexadecimal Text representation. description: Provides an interface for converting any object that has a 'Binary' instance to and from a hexadecimal Text representation.
author: Rene Vergara, author: Rene Vergara,