Packaging of plotfran with nix

6 views
Skip to first unread message

Nikolas Ovaskainen

unread,
Apr 11, 2024, 3:26:02 AMApr 11
to pflotr...@googlegroups.com
Hey,

This is mostly just a FYI but I have gone through the effort of
packaging pflotran for the nix package manager (https://nixos.org/).
See here for the build definition:
https://github.com/nialov/nix-extra/blob/master/overlays/packages/pflotran/default.nix

nix provides reproducible (and cached builds) of any software. This
means it is possible to always reproduce a build with nix if you for
instance provide a revision of the repo with the nix build
declarations. E.g.

nix build github:nialov/nix-extra/d905dc7eca43321db38ee985ea8f10ae56de9b7c#pflotran

Anyway, if you have had trouble with e.g. reproducibility and with
developers setting up their development environment, nix is *a*
solution to these problems although it has a steep learning curve. I
have not included my packaging efforts in nixpkgs
(https://github.com/NixOS/nixpkgs), as I do not know pflotran well
enough to say if the produced build result is completely valid. Let me
know if any you actual maintainers have interest in these things!
Otherwise, as said at the start, this is just a FYI.

Cheers,
Nikolas Ovaskainen

Hammond, Glenn E

unread,
Apr 12, 2024, 10:48:44 AMApr 12
to pflotr...@googlegroups.com
Nikolas,

Thank you for reaching out. I have never heard of nix, but worth looking into. Most of our power users build PFLOTRAN natively on their machines, but new users may find this handy.

Glenn

> -----Original Message-----
> From: pflotr...@googlegroups.com <pflotr...@googlegroups.com>
> On Behalf Of Nikolas Ovaskainen
> Sent: Thursday, April 11, 2024 12:26 AM
> To: pflotr...@googlegroups.com
> Subject: [pflotran-dev: 6253] Packaging of plotfran with nix
>
> Check twice before you click! This email originated from outside PNNL.
>
>
> Hey,
>
> This is mostly just a FYI but I have gone through the effort of packaging
> pflotran for the nix package manager
> (https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnixos
> .org%2F&data=05%7C02%7Cglenn.hammond%40pnnl.gov%7C34dca329a1
> b4443c8b6508dc59f8a4ee%7Cd6faa5f90ae240338c0130048a38deeb%7C0
> %7C0%7C638484172001855682%7CUnknown%7CTWFpbGZsb3d8eyJWIjoi
> MC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C6
> 0000%7C%7C%7C&sdata=RbOI9FZ2eIC8QGhkX1dRbd6Q07mmPO4hFst7Usj
> UnSA%3D&reserved=0).
> See here for the build definition:
> https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithu
> b.com%2Fnialov%2Fnix-
> extra%2Fblob%2Fmaster%2Foverlays%2Fpackages%2Fpflotran%2Fdefault.ni
> x&data=05%7C02%7Cglenn.hammond%40pnnl.gov%7C34dca329a1b4443c
> 8b6508dc59f8a4ee%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%
> 7C638484172001863328%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wL
> jAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7
> C%7C%7C&sdata=p47E323PhBDksCMMaNYzymEcMfhDXW879iIkZ08c9pk%
> 3D&reserved=0
>
> nix provides reproducible (and cached builds) of any software. This means it is
> possible to always reproduce a build with nix if you for instance provide a
> revision of the repo with the nix build declarations. E.g.
>
> nix build github:nialov/nix-
> extra/d905dc7eca43321db38ee985ea8f10ae56de9b7c#pflotran
>
> Anyway, if you have had trouble with e.g. reproducibility and with developers
> setting up their development environment, nix is *a* solution to these
> problems although it has a steep learning curve. I have not included my
> packaging efforts in nixpkgs
> (https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithu
> b.com%2FNixOS%2Fnixpkgs&data=05%7C02%7Cglenn.hammond%40pnnl.g
> ov%7C34dca329a1b4443c8b6508dc59f8a4ee%7Cd6faa5f90ae240338c013
> 0048a38deeb%7C0%7C0%7C638484172001869644%7CUnknown%7CTWF
> pbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJX
> VCI6Mn0%3D%7C60000%7C%7C%7C&sdata=0NwbjH2%2BtbN1pJy8n8Xr%
> 2FGxYSdci8nhsP%2FaYPsJBKng%3D&reserved=0), as I do not know pflotran
> well enough to say if the produced build result is completely valid. Let me
> know if any you actual maintainers have interest in these things!
> Otherwise, as said at the start, this is just a FYI.
>
> Cheers,
> Nikolas Ovaskainen
>
> --
> You received this message because you are subscribed to the Google Groups
> "pflotran-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pflotran-dev...@googlegroups.com.
> To view this discussion on the web visit
> https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroup
> s.google.com%2Fd%2Fmsgid%2Fpflotran-dev%2FCACwDVaW-
> r0__etz2LOYLQ2TME_dEXCx7t7JjU1P6n_GA8TpwDg%2540mail.gmail.com&d
> ata=05%7C02%7Cglenn.hammond%40pnnl.gov%7C34dca329a1b4443c8b6
> 508dc59f8a4ee%7Cd6faa5f90ae240338c0130048a38deeb%7C0%7C0%7C6
> 38484172001875166%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw
> MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%
> 7C%7C&sdata=8rGpGfqjBwz4AdNZXbHe498MWTOk%2BBAgZzbmLvYJ1Ws%
> 3D&reserved=0.
Reply all
Reply to author
Forward
0 new messages