Found the solution (I think): basically it should just work as expected if you just add outputHashAlgo
, outputHashMode
and outputHash
to your derivation.
In case anyone comes here with the same problem, the solution is:
attoparsec-aeson = haskellPackages.mkDerivation {
...
postUnpack = ''
mv source source-aeson
cp -rL source-aeson/attoparsec-aeson source
rm -fr source-aeson
'';
...
};
```*___*
I am amazed at the achievement, and even more amazed at how much people can cheer at anything like madmen.
That’s the thing you want to build (a single project may generate multiple executables - eg. a server and a client) so it won’t help in this case but… I must say, I am impressed and really grateful that you went and looked that up for me! Thanks, mate!
cabal2nix doesn’t care about any source-repository-package
in cabal.project
(I think it doesn’t even read that file?).
In my case, it generated a project that depended on the aeon from nixpkgs (which IIUC in turn comes from hackage) rather than the forked version.
I agree: flakes are great for development (and not only)!
Unfortunately I still need to build that third party project from source :)
Maybe I should look into disregarding the whole haskellPackages infrastructure and just build with cabal via a shell script… IDK if that would be accepted in nixpkgs though :/
OP, I forgot to say! There are specific communities dedicated to self hosting and/or home labbing (eg. !selfhosted@lemmy.world), you may want to participate there
Yes, and computers people have laying around are most probably not outdated enterprise servers that draw 120w at idle :)
(if anything, that’s something a newbie self hoster may buy since they are cheap and look cool)
Cheapest? Use someone else’s hrdware (or “borrow” it) and set it up at work/school/friend’s house/cafe. Free hardware, free connectivity, free electricity.
More seriously, set everithing up on whatever spare old computer you have at hand (or use a vm running on you pc). You should not start with buying hardware.
If the US or EU want to keep up, they can sunbsidize EV manufacturing to the same degree
You can’t allow dumping-inducing subsidies without also allowing defensive tariffs, otherwise the richer and more authoritarian countries, which have greater capacity for subsidies and greater ability to concentrate them in specific sectors, will easily kill foreign competition and establish monopolies.
The marketplace brah is a place where, without regulations that maintain a degree of fairness, the rich kills the poor, competition dies off, and consumers are drained to their last cent.
Just think of it: competition is when different actors fight it off and it ends the moment one of the contenders wins.
If you want the fight to go on forever, you don’t want an unregulated market.
https://en.wikipedia.org/wiki/Dumping_(pricing_policy) (it’s not limited to EVs)
Subsidizing sales of EVs (ie. I pay for my neighbor’s new EV because I want cleaner air) does make environmental sense.
Subsidizing production does not have the same positive environmental impact, mainly because factories in China pollute more than factories, say, in the EU (due to different environmental laws), but also because moving finished products from China to the “west” obviously pollutes more than moving just those components that would need to be sourced from China anyways (eg. batteries).
As for the “makes economic sense” part… IDK: I guess that mainly depend on your political stance.
Personally, I don’t like that both sales and production subsidies have the effect of moving money from the poor to the rich, but other people may focus on different effects (eg. more production = more jobs) and support subsides.
In case you wonder: my take is that, instead of incentivizing adoption and production of EVs, one should disincentivize internal combustion vehicles by adding taxes to them (which, in a sense, aren’t really taxes but just charging for the very real environmental costs society as a whole will have to pay for your shiny SUV).
Anyone not doing this is an idiot and a climate terrorist.
You should really think twice before spewing judgements… and also avoid misusing words like “terrorist” because, when misused this way, it only conveys that you don’t like someone, dulling your message instead of strengthening it.
That’s catchy, but not entirely true.
China heavily subsidizes EV manufacturers (and production in general), plus they have cheaper environmental and labour standards… it’s not like there’s a fair market EU companies can compete in without some sort of handicap.
PS: Yes, “western” countries have been playing along with China’s deliberate long term strategy with full awareness of where it would lead, but that’s another story that is both much older and has a much broader scope than the EV industry.
Considering inflation, games should be a lot more expensive!
…and, considering the economics of scale, they should be a lot less expensive.
It’s not like inflation is the only driver behind prices.
It’s quite easy to get rid of all that crap: just come living in the EU
The problem with Chinese EVs is that they show it’s possible to innovate, keep prices down, and mass produce.
It’s not only possible, it’s easy: you just need terrible labor and environmental standards, poor welfare, cheap access to raw materials, and tons of state subsidies :)
It’s interesting to note that “we” knew all along it would end like this but just couldn’t resist moving/outsourcing production to China nor investing in China’s fast-growing economy.
“We” were chasing short-term profits and China was playing the long game. Apparently, both parties won, each at their own game.
Stop making $70K SUVs and start making $20K Taurus and Escort EVs. You did it once. You can do it again.
The cost of batteries is (relatively) higher for cheap vehicles, so that’s the segment where it makes the most difference.
Kensington? I don’t think an air tag can actually prevent theft (if they see it they’ll remove it - if they don’t see it they’ll still steal your stuff)
Irrelevant: the goal is not preventing shootings (I mean, they would go for the obvious solution otherwise)
Why did they call them ‘gold’ and ‘silver pro’?
You seem to trust the javascript ecosystem just as much as I do :)
Jokes aside, the repo has a lock file so it should actually be fine (time will tell)