Compare commits

..

2 Commits

Author SHA1 Message Date
Nathan McCarty bace7270f9
Update flake 2023-10-21 18:46:46 -04:00
Nathan McCarty 7d9e34d228
Inherit post install 2023-10-21 18:37:19 -04:00
3 changed files with 22 additions and 20 deletions

View File

@ -3,11 +3,11 @@
"advisory-db": { "advisory-db": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1696341198, "lastModified": 1697318478,
"narHash": "sha256-AgAcrT3+22QZiHxapKIt8drtP3hacNmyxFneD/Jsp8I=", "narHash": "sha256-ZEDgHfurZiv9lBGTmHnQ0YECoi6H2NYs3pTo1VU1koQ=",
"owner": "RustSec", "owner": "RustSec",
"repo": "advisory-db", "repo": "advisory-db",
"rev": "da470caa84d3dd3be02657a9cb35bd5269636127", "rev": "71d80e811f2e29a4b82d3e545ad6591e35227e03",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -41,11 +41,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1694081375, "lastModified": 1697664192,
"narHash": "sha256-vzJXOUnmkMCm3xw8yfPP5m8kypQ3BhAIRe4RRCWpzy8=", "narHash": "sha256-nRTG3rYEGFV2+putRiC96+kNXDyKaPJgT6K/1FWN7yo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "naersk", "repo": "naersk",
"rev": "3f976d822b7b37fc6fb8e6f157c2dd05e7e94e89", "rev": "636a9b5dd7f2ad7d7c3af929ecf95e4d4fab9e97",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -56,11 +56,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1696577711, "lastModified": 1697793076,
"narHash": "sha256-94VRjvClIKDym1QRqPkX5LTQoAwZ1E6QE/3dWtOXSIQ=", "narHash": "sha256-02e7sCuqLtkyRgrZmdOyvAcQTQdcXj+vpyp9bca6cY4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a2eb207f45e4a14a1e3019d9e3863d1e208e2295", "rev": "038b2922be3fc096e1d456f93f7d0f4090628729",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -87,11 +87,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1696644659, "lastModified": 1697854201,
"narHash": "sha256-l/DgT519At8HhXDQHz3+H8AjaEbrsb7Xkqgj+JNHV6k=", "narHash": "sha256-H+0Wb20PQx/8N7X/OfwwAVPeN9TbfjcyG0sXbdgsh50=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "126829788e99c188be4eeb805f144d73d8a00f2c", "rev": "6e8e3332433847cd56186b1f6fc8c47603cf5b46",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -60,7 +60,8 @@
{ {
# Build a rust flake with a single crate # Build a rust flake with a single crate
single = { src, crateName, sharedDeps ? (system: [ ]) single = { src, crateName, sharedDeps ? (system: [ ])
, sharedNativeDeps ? (system: [ ]), copyBins ? true, copyLibs ? false }: , sharedNativeDeps ? (system: [ ]), copyBins ? true, copyLibs ? false
, postInstall ? false, }:
utils.lib.eachDefaultSystem (system: utils.lib.eachDefaultSystem (system:
let let
pkgs = import nixpkgs { pkgs = import nixpkgs {
@ -106,7 +107,8 @@
# Main binary # Main binary
packages.${crateName} = naersk-lib.buildPackage { packages.${crateName} = naersk-lib.buildPackage {
pname = "${crateName}"; pname = "${crateName}";
inherit buildInputs nativeBuildInputs copyBins copyLibs; inherit buildInputs nativeBuildInputs copyBins copyLibs
postInstall;
root = src; root = src;
}; };
# binary + tests # binary + tests

View File

@ -5,9 +5,9 @@
"version": "0.18.2" "version": "0.18.2"
}, },
"cargo-llvm-cov": { "cargo-llvm-cov": {
"hash": "sha256-hFX98EGT0zCqbUXAe/MlWI25BdLEcaruiSZKvU0EzXM=", "hash": "sha256-BP8YI43w76n4AcrNG3iuYW1WfjzmUZVjpQ/n3bdW3Ic=",
"pname": "cargo-llvm-cov", "pname": "cargo-llvm-cov",
"version": "0.5.33" "version": "0.5.35"
}, },
"cargo-nextest": { "cargo-nextest": {
"hash": "sha256-PzBgJTMKg11D1DzXmyrv218tbXuclL7Y1Vi63gk2gmc=", "hash": "sha256-PzBgJTMKg11D1DzXmyrv218tbXuclL7Y1Vi63gk2gmc=",
@ -15,14 +15,14 @@
"version": "0.9.59" "version": "0.9.59"
}, },
"cargo-udeps": { "cargo-udeps": {
"hash": "sha256-PoMvkmb4+GNxdHFaJ+QwQOvWZFDU6EkrmpexPeQLNcA=", "hash": "sha256-ig3mggTO0no0DjwrKyt7AZf/H9j+oSgG1jrLdRTr8A0=",
"pname": "cargo-udeps", "pname": "cargo-udeps",
"version": "0.1.42" "version": "0.1.43"
}, },
"flamegraph": { "flamegraph": {
"hash": "sha256-StrZ0FVC5r8SlZACj4uoRc+Nma1Rb6OxdNbYD93V+pY=", "hash": "sha256-T3dEi2pcuUUSN7CMqs+i+A/A5Gnjkml59ex6WJ3hywI=",
"pname": "flamegraph", "pname": "flamegraph",
"version": "0.6.3" "version": "0.6.4"
}, },
"samply": { "samply": {
"hash": "sha256-V0uAS7Oo7wv0yU5CgqqYhltwM5PXJ3GP/TLVZV2GkkI=", "hash": "sha256-V0uAS7Oo7wv0yU5CgqqYhltwM5PXJ3GP/TLVZV2GkkI=",